Code

git-svn: Correctly handle root commits in mergeinfo ranges
authorMichael Haggerty <mhagger@alum.mit.edu>
Sat, 18 Jun 2011 06:48:00 +0000 (08:48 +0200)
committerEric Wong <normalperson@yhbt.net>
Tue, 28 Jun 2011 03:26:11 +0000 (03:26 +0000)
commit124b70a2adad2b2efdf50150a6840f1327d2f2cd
treed2b9f2f790084bb3624df84d26d28b8703dfcc2c
parenteabd73a3b587615ca60e820dfa1b8802d1659db3
git-svn: Correctly handle root commits in mergeinfo ranges

If the bottom of a mergeinfo range is a commit that maps to a git root
commit, then it doesn't have a parent.  In such a case, use git commit
range "$top_commit" rather than "$bottom_commit^..$top_commit".

[ew: line-wrap at 80 columns]

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Acked-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl
t/t9159-git-svn-no-parent-mergeinfo.sh