git-svn gets wrong parent revision for tags
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-core (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: git-core
When converting a subversion repository to GIT using git-svn, the svn tags do not have the right parent. Each tag should be identical to a trunk revision (which it was copied from), but because git-svn uses an earlier revision as the parent it appears that the same work was duplicated on two branches.
In the subversion history, a release tag appears like this:
$ svn log -v file://
r2071 | tal197 | 2007-11-10 19:40:45 +0000 (Sat, 10 Nov 2007) | 1 line
Changed paths:
A /releases/
R /releases/
R /releases/
R /releases/
Released 0.12
...
The correct revision to use for the parent is 2070, but git-svn is using revision 1968:
r2070 = f229dedfe78c2dd
Found possible branch point: file://
Found branch parent: (tags/0publish-
The attached patch to git-svn fixed the problem for my repository.