Am 02.06.2017 um 05:02 schrieb Martin Owens:
I wonder, is there a way to modify the export to export branches as git branches? It's probably a bit extra crazy, but it'd be so nice to have a one shot 'export' that gives you coherent branches instead of separate repositories.
I'm going to think about it, maybe there's a way to automate. Although maybe Ted's managed to sort everything out manually.
That's already happening. Using bzr fast-export / git fast-import with marks (see for example [1]) let's you import as many bzr branches as you want into a single git repo. The marks take care that commits are not imported multiple times but properly linked in history instead.
Ted experimented with the lp2gh Python script which does exactly the same internally but in an automated way.
Regards, Eduard
[1] http://blog.timmattison.com/archives/2011/06/13/how-to-convert-from-bzr-to-g...