diff options
author | Tuomas Suutari <tuomas.suutari@gmail.com> | 2010-02-22 19:12:53 +0100 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-02-26 10:30:23 +0100 |
commit | 6a2009e7f34148a737d8832887dcd491905017be (patch) | |
tree | 843d8292cd9b077ebaf890c30a654561b88f024b /git-svn.perl | |
parent | t9151: Add two new svn:mergeinfo test cases (diff) | |
download | git-6a2009e7f34148a737d8832887dcd491905017be.tar.xz git-6a2009e7f34148a737d8832887dcd491905017be.zip |
git-svn: Fix discarding of extra parents from svn:mergeinfo
If parent J is an ancestor of parent I, then parent J should be
discarded, not I.
Note that J is an ancestor of I if and only if rev-list I..J is emtpy,
which is what we are testing here.
Signed-off-by: Tuomas Suutari <tuomas.suutari@gmail.com>
Acked-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-x | git-svn.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-svn.perl b/git-svn.perl index 265852f459..ed96a03059 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -3273,7 +3273,7 @@ sub find_extra_svn_parents { "$new_parents[$i]..$new_parents[$j]", ); if ( !$revs ) { - undef($new_parents[$i]); + undef($new_parents[$j]); } } } |