3 # Copyright (c) 2006 Catalin Marinas
6 test_description
='Test the patch history generation.
13 'Initialize the StGIT repository' \
19 'Create the first patch' \
21 stg new foo -m "Foo Patch" &&
22 echo foo > test && echo foo2 >> test &&
28 'Create the second patch' \
30 stg new bar -m "Bar Patch" &&
36 'Check the "new" and "refresh" logs' \
38 stg log foo | grep -q -e "^new" &&
39 stg log foo | grep -q -e "^refresh" &&
40 stg log | grep -q -e "^new" &&
41 stg log | grep -q -e "^refresh"
45 'Check the "push" log' \
48 echo foo > test2 && stg add test2 && stg refresh &&
50 stg log | grep -q -e "^push "
54 'Check the "push(f)" log' \
57 stg refresh -m "Foo2 Patch" &&
59 stg log | grep -q -e "^push(f) "
63 'Check the "push(m)" log' \
66 echo foo2 > test && stg refresh &&
68 stg log | grep -q -e "^push(m) "
72 'Check the "push(c)" log' \
74 echo bar > test && stg refresh &&
76 echo foo > test && stg refresh &&
78 stg log | grep -q -e "^push(c) "
82 'Check the push "undo" log' \
86 stg log bar | grep -q -e "^undo "
90 'Check the refresh "undo" log' \
93 stg log | grep -q -e "^undo "