-
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 SVK merge tickets to extra parents
SVK is a simple case to start with, as its idea of merge parents matches git's one. When a svk:merge ticket is encountered, check each of the listed merged revisions to see if they are in the history of this commit; if not, then we have encountered a merge - record it. [ew: minor formatting cleanups] 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
a5e9c7d
commit f1264bd
Showing
2 changed files
with
74 additions
and
1 deletion.
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,23 @@ | ||
#!/bin/sh | ||
# | ||
# Copyright (c) 2007 Sam Vilain | ||
# | ||
|
||
test_description='git-svn svk merge tickets' | ||
|
||
. ./lib-git-svn.sh | ||
|
||
test_expect_success 'load svk depot' " | ||
svnadmin load -q '$rawsvnrepo' < '../t9150/svk-merge.dump' && | ||
git svn init --minimize-url -R svkmerge \ | ||
-T trunk -b branches '$svnrepo' && | ||
git svn fetch --all | ||
" | ||
|
||
uuid=b48289b2-9c08-4d72-af37-0358a40b9c15 | ||
|
||
test_expect_success 'svk merges were represented coming in' " | ||
[ `git-cat-file commit HEAD | grep parent | wc -l` -eq 2 ] | ||
" | ||
|
||
test_done |