1461 |
29 Feb 12 |
peter |
#!/bin/sh |
1461 |
29 Feb 12 |
peter |
2 |
|
1461 |
29 Feb 12 |
peter |
# $Id$ |
1461 |
29 Feb 12 |
peter |
4 |
|
1468 |
19 Mar 12 |
peter |
# Copyright (C) 2012 Peter Johansson |
1461 |
29 Feb 12 |
peter |
6 |
# |
1461 |
29 Feb 12 |
peter |
# This file is part of svndigest, http://dev.thep.lu.se/svndigest |
1461 |
29 Feb 12 |
peter |
8 |
# |
1461 |
29 Feb 12 |
peter |
# svndigest is free software; you can redistribute it and/or modify it |
1461 |
29 Feb 12 |
peter |
# under the terms of the GNU General Public License as published by |
1461 |
29 Feb 12 |
peter |
# the Free Software Foundation; either version 3 of the License, or |
1461 |
29 Feb 12 |
peter |
# (at your option) any later version. |
1461 |
29 Feb 12 |
peter |
13 |
# |
1461 |
29 Feb 12 |
peter |
# svndigest is distributed in the hope that it will be useful, but |
1461 |
29 Feb 12 |
peter |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
1461 |
29 Feb 12 |
peter |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1461 |
29 Feb 12 |
peter |
# General Public License for more details. |
1461 |
29 Feb 12 |
peter |
18 |
# |
1461 |
29 Feb 12 |
peter |
# You should have received a copy of the GNU General Public License |
1461 |
29 Feb 12 |
peter |
# along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
1461 |
29 Feb 12 |
peter |
21 |
|
1461 |
29 Feb 12 |
peter |
# Test that svncopyright (and indirectly svndigest) does not traverse |
1461 |
29 Feb 12 |
peter |
# into another WC. See ticket #512 |
1461 |
29 Feb 12 |
peter |
24 |
|
1461 |
29 Feb 12 |
peter |
25 |
required="repo" |
1461 |
29 Feb 12 |
peter |
26 |
|
1461 |
29 Feb 12 |
peter |
27 |
rm -rf testSubdir/traverse_test.sh.dir |
1461 |
29 Feb 12 |
peter |
28 |
|
1525 |
01 Oct 12 |
peter |
29 |
. test/init.sh || exit 99 |
1461 |
29 Feb 12 |
peter |
30 |
|
1461 |
29 Feb 12 |
peter |
31 |
daughter=.svndigest/branches_wc |
1461 |
29 Feb 12 |
peter |
32 |
|
1461 |
29 Feb 12 |
peter |
# check out |
1461 |
29 Feb 12 |
peter |
34 |
rm -rf $rootdir/$daughter |
1461 |
29 Feb 12 |
peter |
35 |
$SVN checkout file://$repo/branches $rootdir/$daughter || exit_fail |
1461 |
29 Feb 12 |
peter |
36 |
|
1461 |
29 Feb 12 |
peter |
#$SVN revert -R $rootdir/$daughter |
1461 |
29 Feb 12 |
peter |
#$SVN update $rootdir/$daughter |
1461 |
29 Feb 12 |
peter |
# modify file |
1461 |
29 Feb 12 |
peter |
40 |
echo >> $rootdir/$daughter/NEWS |
1461 |
29 Feb 12 |
peter |
41 |
|
1461 |
29 Feb 12 |
peter |
42 |
$SVN revert -R $rootdir |
1461 |
29 Feb 12 |
peter |
43 |
$SVN update $rootdir |
1461 |
29 Feb 12 |
peter |
44 |
|
1461 |
29 Feb 12 |
peter |
45 |
$SVN log $rootdir/$daughter |
1464 |
11 Mar 12 |
peter |
46 |
SVNCOPYRIGHT_run 0 -v -r $rootdir |
1470 |
19 Mar 12 |
peter |
47 |
$GREP "^Parsing.*$rootdir/bin/" stdout || exit_fail |
1461 |
29 Feb 12 |
peter |
48 |
$GREP "^Parsing.*$rootdir/$daughter" stdout && exit_fail |
1461 |
29 Feb 12 |
peter |
49 |
|
1461 |
29 Feb 12 |
peter |
50 |
exit_success; |