git migration: preserve additional metadata (fixed bugs, revision numbers and multiple authors)

Bug #1695103 reported by Patrick Storz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Patrick Storz

Bug Description

bzr has some metadata that is not supported by git.

So far I know of:
- bugs fixed by the commit
- revision number
- multiple authors

The attached patch modifies Bazaar's fast-export plugin to include those metadata into the commit message so they won't be lost after the migration to git.

Revision history for this message
Patrick Storz (ede123) wrote :

There's one downside of this patch: The function "_compute_revno_str()" used to query revision numbers is not overly efficient which results in significantly reduced export performance (approx 3 times slower).

If anybody knows a faster approach let me know.

In any case since this will be a one-time conversion I guess this is acceptable given the fact that revision numbers are quite important as many commit messages reference them.

Revision history for this message
Patrick Storz (ede123) wrote :
Revision history for this message
Martin Owens (doctormo) wrote :

It's walking the entire tree and counting them, it's got a cache, but it's still a lot of work. add the extra time to walk down side paths... I'd say it's as efficient as it's going to get given the code.

Revision history for this message
Patrick Storz (ede123) wrote :

I think this is done ;-)

Changed in inkscape:
status: New → Fix Released
assignee: nobody → Eduard Braun (eduard-braun2)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.