Follow upstream changes -- rest
[git-darcs-import.git] / tests / issue966_diff.sh
blob6171a1247c971eaba95ca74a8dc2a07651ba3f92
1 #!/usr/bin/env bash
2 set -ev
4 rm -rf temp
5 mkdir temp; cd temp
6 darcs init
7 echo "aaa diff" > file
8 darcs add file
9 darcs record -a -m "aaa"
10 echo "bbb diff" >> file
11 darcs record -a -m "bbb"
13 darcs diff --patch "aaa" | grep "aaa diff"
14 darcs diff --patch "bbb" | grep "bbb diff"
16 darcs tag release-1
17 darcs optimize
19 echo "ccc diff" >> file
20 darcs record -a -m "ccc"
21 darcs diff --patch "ccc" | grep "ccc diff"
23 # here is where we have a problem
24 darcs diff --patch "aaa" | grep "aaa diff"
25 darcs diff --patch "bbb" | grep "bbb diff"