Follow upstream changes -- rest
[git-darcs-import.git] / tests / show_contents.sh
blobe7f413b02405e99703f028309ff53df668ef5145
1 #!/usr/bin/env bash
2 set -ev
4 rm -rf temp1
5 mkdir temp1
6 cd temp1
7 darcs init
8 touch foo
9 darcs add foo
10 echo first > foo
11 darcs record -a -m "first edit" -A author1
12 echo second > foo
13 darcs record -a -m "second edit" -A author2
14 darcs tag t1 -A moi
15 echo third > foo
16 darcs record -a -m "third edit" -A author3
17 echo fourth > foo
18 darcs record -a -m "fourth edit" -A author4
19 echo unrecorded > foo
20 darcs show contents foo | grep fourth
21 darcs show contents foo -p third | grep third
22 darcs show contents foo --match="author author1" first | grep first
23 darcs show contents foo --tag t1 | grep second
24 cd ..
26 rm -rf temp1