aboutsummaryrefslogtreecommitdiff
path: root/t/t9150-svk-mergetickets.sh
diff options
context:
space:
mode:
authorSam Vilain <sam.vilain@catalyst.net.nz>2009-10-20 15:42:01 +1300
committerEric Wong <normalperson@yhbt.net>2009-10-26 23:51:31 -0700
commitf1264bd65451a68e87e0f99c9601cfa1b3244db6 (patch)
tree4703c7293c10dacfdf731058f8fd0caebc61484f /t/t9150-svk-mergetickets.sh
parenta5e9c7dfe4732b560ab5dfc75e718bfda2027990 (diff)
downloadgit-f1264bd65451a68e87e0f99c9601cfa1b3244db6.tar.gz
git-f1264bd65451a68e87e0f99c9601cfa1b3244db6.tar.xz
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>
Diffstat (limited to 't/t9150-svk-mergetickets.sh')
-rw-r--r--t/t9150-svk-mergetickets.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/t/t9150-svk-mergetickets.sh b/t/t9150-svk-mergetickets.sh
new file mode 100644
index 000000000..8000c347b
--- /dev/null
+++ b/t/t9150-svk-mergetickets.sh
@@ -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