mirror of
https://github.com/git/git
synced 2024-08-28 12:09:19 +00:00
![Michael J Gruber](/assets/img/avatar_default.png)
Some of the tests "say" how to stop the svn tests from running, some do not. The test suite is directed at people reading t/README where we keep all information about running the test suite (partly, with options etc.). Remove said "say" occurences. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Eric Wong <e@80x24.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
53 lines
1.1 KiB
Bash
Executable file
53 lines
1.1 KiB
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# Copyright (c) 2010 Steven Walter
|
|
#
|
|
|
|
test_description='git svn mergeinfo propagation'
|
|
|
|
. ./lib-git-svn.sh
|
|
|
|
test_expect_success 'initialize source svn repo' '
|
|
svn_cmd mkdir -m x "$svnrepo"/trunk &&
|
|
svn_cmd co "$svnrepo"/trunk "$SVN_TREE" &&
|
|
(
|
|
cd "$SVN_TREE" &&
|
|
touch foo &&
|
|
svn_cmd add foo &&
|
|
svn_cmd commit -m "initial commit"
|
|
) &&
|
|
rm -rf "$SVN_TREE"
|
|
'
|
|
|
|
test_expect_success 'clone svn repo' '
|
|
git svn init "$svnrepo"/trunk &&
|
|
git svn fetch
|
|
'
|
|
|
|
test_expect_success 'change svn:mergeinfo' '
|
|
touch bar &&
|
|
git add bar &&
|
|
git commit -m "bar" &&
|
|
git svn dcommit --mergeinfo="/branches/foo:1-10"
|
|
'
|
|
|
|
test_expect_success 'verify svn:mergeinfo' '
|
|
mergeinfo=$(svn_cmd propget svn:mergeinfo "$svnrepo"/trunk) &&
|
|
test "$mergeinfo" = "/branches/foo:1-10"
|
|
'
|
|
|
|
test_expect_success 'change svn:mergeinfo multiline' '
|
|
touch baz &&
|
|
git add baz &&
|
|
git commit -m "baz" &&
|
|
git svn dcommit --mergeinfo="/branches/bar:1-10 /branches/other:3-5,8,10-11"
|
|
'
|
|
|
|
test_expect_success 'verify svn:mergeinfo multiline' '
|
|
mergeinfo=$(svn_cmd propget svn:mergeinfo "$svnrepo"/trunk) &&
|
|
test "$mergeinfo" = "/branches/bar:1-10
|
|
/branches/other:3-5,8,10-11"
|
|
'
|
|
|
|
test_done
|