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

Bug #1695103 reported by Eduard Braun on 2017-06-01
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Undecided
Unassigned

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.

Eduard Braun (eduard-braun2) 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.

Eduard Braun (eduard-braun2) wrote :
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.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers