1539 |
10 Oct 12 |
peter |
#!/bin/sh |
1539 |
10 Oct 12 |
peter |
2 |
|
1539 |
10 Oct 12 |
peter |
# $Id$ |
1539 |
10 Oct 12 |
peter |
4 |
|
1539 |
10 Oct 12 |
peter |
# Copyright (C) 2012 Peter Johansson |
1635 |
30 Mar 23 |
peter |
# Copyright (C) 2015 Jari Häkkinen, Peter Johansson |
1539 |
10 Oct 12 |
peter |
7 |
# |
1539 |
10 Oct 12 |
peter |
# This file is part of svndigest, http://dev.thep.lu.se/svndigest |
1539 |
10 Oct 12 |
peter |
9 |
# |
1539 |
10 Oct 12 |
peter |
# svndigest is free software; you can redistribute it and/or modify it |
1539 |
10 Oct 12 |
peter |
# under the terms of the GNU General Public License as published by |
1539 |
10 Oct 12 |
peter |
# the Free Software Foundation; either version 3 of the License, or |
1539 |
10 Oct 12 |
peter |
# (at your option) any later version. |
1539 |
10 Oct 12 |
peter |
14 |
# |
1539 |
10 Oct 12 |
peter |
# svndigest is distributed in the hope that it will be useful, but |
1539 |
10 Oct 12 |
peter |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
1539 |
10 Oct 12 |
peter |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1539 |
10 Oct 12 |
peter |
# General Public License for more details. |
1539 |
10 Oct 12 |
peter |
19 |
# |
1539 |
10 Oct 12 |
peter |
# You should have received a copy of the GNU General Public License |
1539 |
10 Oct 12 |
peter |
# along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
1539 |
10 Oct 12 |
peter |
22 |
|
1539 |
10 Oct 12 |
peter |
# test that when a changeset only removes a directory that this will |
1539 |
10 Oct 12 |
peter |
# be reflected in mother's output |
1539 |
10 Oct 12 |
peter |
25 |
|
1602 |
06 Sep 15 |
peter |
# we want to a wc from rev52 |
1602 |
06 Sep 15 |
peter |
27 |
wc_revision=52 |
1602 |
06 Sep 15 |
peter |
# remove wc as downdating potentially causes conflicts |
1602 |
06 Sep 15 |
peter |
29 |
rm -rf test/testSubDir/update_test4.sh.dir/toy_project |
1539 |
10 Oct 12 |
peter |
30 |
required="repo" |
1539 |
10 Oct 12 |
peter |
31 |
. test/init.sh || exit 99 |
1539 |
10 Oct 12 |
peter |
32 |
|
1539 |
10 Oct 12 |
peter |
33 |
targetdir=out |
1539 |
10 Oct 12 |
peter |
34 |
rm -rf out/* |
1539 |
10 Oct 12 |
peter |
35 |
$mkdir_p out |
1539 |
10 Oct 12 |
peter |
36 |
|
1602 |
06 Sep 15 |
peter |
# run svndigest in r52 |
1539 |
10 Oct 12 |
peter |
38 |
SVNDIGEST_run 0 -r $rootdir -t $targetdir --ignore-cache --format=none |
1539 |
10 Oct 12 |
peter |
39 |
test -e stderr || exit_fail |
1539 |
10 Oct 12 |
peter |
40 |
test -s stderr && exit_fail |
1539 |
10 Oct 12 |
peter |
41 |
|
1603 |
18 Sep 15 |
jari |
# remove directories that are prone to conflicts |
1603 |
18 Sep 15 |
jari |
43 |
rm -rf $rootdir/design |
1603 |
18 Sep 15 |
jari |
44 |
rm -rf $rootdir/late_copy |
1603 |
18 Sep 15 |
jari |
45 |
|
1602 |
06 Sep 15 |
peter |
# update to rev 53, which removes directory 'design' |
1539 |
10 Oct 12 |
peter |
47 |
$SVN update -r 53 $rootdir || exit_fail |
1539 |
10 Oct 12 |
peter |
48 |
|
1602 |
06 Sep 15 |
peter |
# try running svndigest and make sure it runs although no file in |
1602 |
06 Sep 15 |
peter |
# current revision has changed (topdir has changed though as directory |
1602 |
06 Sep 15 |
peter |
# 'design' was removed). |
1539 |
10 Oct 12 |
peter |
52 |
SVNDIGEST_run 0 -r $rootdir -t $targetdir --ignore-cache --format=none -u |
1539 |
10 Oct 12 |
peter |
53 |
test -e stderr || exit_fail |
1539 |
10 Oct 12 |
peter |
54 |
test -s stderr && exit_fail |
1539 |
10 Oct 12 |
peter |
55 |
|
1539 |
10 Oct 12 |
peter |
56 |
grep '^Printing' stdout || exit_fail |
1539 |
10 Oct 12 |
peter |
57 |
|
1539 |
10 Oct 12 |
peter |
58 |
exit_success; |