chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add 'pick' test script
[stgit]
/
t
/
t1202-push-undo.sh
diff --git
a/t/t1202-push-undo.sh
b/t/t1202-push-undo.sh
index 544fe8d1a2d5f1ca24bb3163aedf24f0c24f61c2..79439deae584099c5dad527c660c0eee4eca8ca7 100755
(executable)
--- a/
t/t1202-push-undo.sh
+++ b/
t/t1202-push-undo.sh
@@
-3,10
+3,10
@@
# Copyright (c) 2006 Catalin Marinas
#
# Copyright (c) 2006 Catalin Marinas
#
-test_description='Exercise
push --undo with
missing files.
+test_description='Exercise
stg undo with push of
missing files.
Test the case where a patch fails to be pushed because it modifies a
Test the case where a patch fails to be pushed because it modifies a
-missing file. The "
push --
undo" command has to be able to revert it.
+missing file. The "
stg
undo" command has to be able to revert it.
'
. ./test-lib.sh
'
. ./test-lib.sh
@@
-49,7
+49,7
@@
test_expect_success \
test_expect_success \
'Undo the previous push' \
'
test_expect_success \
'Undo the previous push' \
'
- stg
push --undo
+ stg
undo --hard
'
test_expect_success \
'
test_expect_success \
@@
-64,7
+64,7
@@
test_expect_success \
touch newfile &&
git add newfile &&
rm newfile &&
touch newfile &&
git add newfile &&
rm newfile &&
- stg
push --undo
+ stg
undo --hard
'
test_done
'
test_done