Follow upstream changes -- rest
[git-darcs-import.git] / tests / issue803.sh
blob00631e0e913285dc45d8a85649e4479cd52765c0
1 #!/usr/bin/env bash
3 # http://bugs.darcs.net/issue803: Darcs 2.0 regression on manual renames
5 set -ev
7 ## I would use the builtin !, but that has the wrong semantics.
8 not () { "$@" && exit 1 || :; }
10 rm -rf temp
11 mkdir temp
12 cd temp
13 darcs init
15 touch a.txt
16 darcs add a.txt
17 darcs record -a -m "First" -A me
19 mkdir subdir
20 darcs add subdir
21 darcs record -a -m "Second" -A me
23 mv a.txt subdir/
24 darcs mv a.txt subdir/a.txt
25 darcs record -a -m "Third" -A me
27 darcs changes --last 1 -v > stdout
28 cat stdout
30 not grep 'rmfile' stdout
32 cd ..
33 rm -rf temp