-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn: convert SVN 1.5+ / svnmerge.py svn:mergeinfo props to parents
This feature is long overdue; convert SVN's merge representation to git's as revisions are imported. This works by converting the list of revisions in each line of the svn:mergeinfo into git revision ranges, and then checking the latest of each of these revision ranges for A) being new and B) now being completely merged. Signed-off-by: Sam Vilain <sam.vilain@catalyst.net.nz> Acked-by: Eric Wong <normalperson@yhbt.net>
- Loading branch information
Sam Vilain
authored and
Eric Wong
committed
Oct 27, 2009
1 parent
ce62683
commit dff589e
Showing
2 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
# | ||
# Copyright (c) 2007, 2009 Sam Vilain | ||
# | ||
|
||
test_description='git-svn svn mergeinfo properties' | ||
|
||
. ./lib-git-svn.sh | ||
|
||
test_expect_success 'load svn dump' " | ||
svnadmin load -q '$rawsvnrepo' < '../t9151/svn-mergeinfo.dump' && | ||
git svn init --minimize-url -R svnmerge \ | ||
-T trunk -b branches '$svnrepo' && | ||
git svn fetch --all | ||
" | ||
|
||
test_expect_success 'svn merges were represented coming in' " | ||
[ `git cat-file commit HEAD | grep parent | wc -l` -eq 2 ] | ||
" | ||
|
||
test_done |