update readmes
[git-darcs-import.git] / tests / show-authors.sh
blobf8303fca8eae13d45cd480a1dfc9d2ed0116fc8d
1 #!/usr/bin/env bash
2 set -ev
4 rm -rf test
5 mkdir test
6 cd test
7 darcs init
8 echo zig > foo
9 darcs add foo
10 darcs record -a -m add_foo -A x
11 echo zag >> foo
12 darcs record -a -m mod_foo -A y
13 echo bar > foo
14 darcs record -a -m mod2 -A y
16 darcs show authors > authors
17 grep x authors
18 grep y authors
20 head -1 authors > first-author
21 grep y first-author
23 darcs show authors --verbose
24 darcs show authors --verbose | grep y | wc -l > num-patches
25 cat num-patches
26 grep 2 num-patches
28 cd ..
29 rm -rf test