A strange request, I admit…
We have a project that is currently managed in Bazaar, but was previously stored in Subversion. However, rather that copying the history across, the previous developers took a single export of the SVN repo and started a brand-new BZR repo.
Thus, we have the following:
SVN: A-B-C-D
BZR: E-F-G-H
And what I want is:
GIT: A-B-C-D-E-D-G-H
Thanks
Probably easiest with
git filter-branch. In fact, this is one of the examples in the filter-branch documentation:So here
<graft-id>is your commit D, assuming you are working from a branch consisting of the BZR commits E to H. So I assume you’ve used migration tools to get both the svn and bzr histories into git, and imported them as separate branches into a single repository.