1 | #!/bin/sh |
---|
2 | |
---|
3 | # $Id: traverse_test.sh 1470 2012-03-19 07:18:49Z peter $ |
---|
4 | |
---|
5 | # Copyright (C) 2012 Peter Johansson |
---|
6 | # |
---|
7 | # This file is part of svndigest, http://dev.thep.lu.se/svndigest |
---|
8 | # |
---|
9 | # svndigest is free software; you can redistribute it and/or modify it |
---|
10 | # under the terms of the GNU General Public License as published by |
---|
11 | # the Free Software Foundation; either version 3 of the License, or |
---|
12 | # (at your option) any later version. |
---|
13 | # |
---|
14 | # svndigest is distributed in the hope that it will be useful, but |
---|
15 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
17 | # General Public License for more details. |
---|
18 | # |
---|
19 | # You should have received a copy of the GNU General Public License |
---|
20 | # along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
---|
21 | |
---|
22 | # Test that svncopyright (and indirectly svndigest) does not traverse |
---|
23 | # into another WC. See ticket #512 |
---|
24 | |
---|
25 | required="repo" |
---|
26 | |
---|
27 | rm -rf testSubdir/traverse_test.sh.dir |
---|
28 | |
---|
29 | . ./init.sh || exit 99 |
---|
30 | |
---|
31 | # skip this test as long as it is XFAIL because we get false negative |
---|
32 | # with older WC |
---|
33 | # FIXME, remove line below when this test is expected to be successful |
---|
34 | $SVN --version | $GREP "version 1.7" || exit_skip |
---|
35 | |
---|
36 | daughter=.svndigest/branches_wc |
---|
37 | |
---|
38 | # check out |
---|
39 | rm -rf $rootdir/$daughter |
---|
40 | $SVN checkout file://$repo/branches $rootdir/$daughter || exit_fail |
---|
41 | |
---|
42 | #$SVN revert -R $rootdir/$daughter |
---|
43 | #$SVN update $rootdir/$daughter |
---|
44 | # modify file |
---|
45 | echo >> $rootdir/$daughter/NEWS |
---|
46 | |
---|
47 | $SVN revert -R $rootdir |
---|
48 | $SVN update $rootdir |
---|
49 | |
---|
50 | $SVN log $rootdir/$daughter |
---|
51 | SVNCOPYRIGHT_run 0 -v -r $rootdir |
---|
52 | $GREP "^Parsing.*$rootdir/bin/" stdout || exit_fail |
---|
53 | $GREP "^Parsing.*$rootdir/$daughter" stdout && exit_fail |
---|
54 | |
---|
55 | exit_success; |
---|