-
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.
Merge git://git.bogomips.org/git-svn
* git://git.bogomips.org/git-svn: git-svn: convert SVN 1.5+ / svnmerge.py svn:mergeinfo props to parents git-svn: add test data for SVN 1.5+ merge, with script. git-svn: convert SVK merge tickets to extra parents git-svn: allow test setup script to support PERL env. var git-svn: add test data for SVK merge, with script. git svn: fix fetch where glob is on the top-level URL
- Loading branch information
Showing
9 changed files
with
1,677 additions
and
5 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
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 |
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,57 @@ | ||
#!/bin/sh | ||
# | ||
# this script sets up a Subversion repository for Makefile in the | ||
# first ever git merge, as if it were done with svk. | ||
# | ||
|
||
set -e | ||
|
||
svk depotmap foo ~/.svk/foo | ||
svk co /foo/ foo | ||
cd foo | ||
mkdir trunk | ||
mkdir branches | ||
svk add trunk branches | ||
svk commit -m "Setup trunk and branches" | ||
cd trunk | ||
|
||
git cat-file blob 6683463e:Makefile > Makefile | ||
svk add Makefile | ||
|
||
svk commit -m "ancestor" | ||
cd .. | ||
svk cp trunk branches/left | ||
|
||
svk commit -m "make left branch" | ||
cd branches/left/ | ||
|
||
git cat-file blob 5873b67e:Makefile > Makefile | ||
svk commit -m "left update 1" | ||
|
||
cd ../../trunk | ||
git cat-file blob 75118b13:Makefile > Makefile | ||
svk commit -m "trunk update" | ||
|
||
cd ../branches/left | ||
git cat-file blob b5039db6:Makefile > Makefile | ||
svk commit -m "left update 2" | ||
|
||
cd ../../trunk | ||
svk sm /foo/branches/left | ||
# in theory we could delete the "left" branch here, but it's not | ||
# required so don't do it, in case people start getting ideas ;) | ||
svk commit -m "merge branch 'left' into 'trunk'" | ||
|
||
git cat-file blob b51ad431:Makefile > Makefile | ||
|
||
svk diff Makefile && echo "Hey! No differences, magic" | ||
|
||
cd ../.. | ||
|
||
svnadmin dump ~/.svk/foo > svk-merge.dump | ||
|
||
svk co -d foo | ||
rm -rf foo | ||
svk depotmap -d /foo/ | ||
rm -rf ~/.svk/foo | ||
|
Oops, something went wrong.