Comment 4 for bug 163341

Revision history for this message
Thomas Leonard (talex5) wrote :

Try:

git-svn clone https://zero-install.svn.sourceforge.net/svnroot/zero-install -T trunk/0publish -r1890:2072 -b releases/0publish

git-svn version 1.5.2.5 (svn 1.4.4)

Go into the created 'zero-install' directory and run:

gitk --all

As you can see, the git branch comes from r1894, yet the svn log shows that in includes files from r2070:

svn log https://zero-install.svn.sourceforge.net/svnroot/zero-install -r2071 -v

My patch is not correct in all cases, since it is possible to create a branch from an earlier revision than HEAD (probably it should find the newest source version rather than the oldest). However, the current code seems worse since in fails to cope with the normal case.

(the problem of getting the correct branch point is probably unsolvable in the most general case, since a branch may even come from a mixture of different revisions, although I doubt anyone does that intentionally)