chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the applied/unapplied commands
[stgit]
/
t
/
t1600-delete-one.sh
diff --git
a/t/t1600-delete-one.sh
b/t/t1600-delete-one.sh
index b526a552c69977898e3241066814c0493231bae7..ef0b29d27c8a59a5febe64227e846b95ddb2b629 100755
(executable)
--- a/
t/t1600-delete-one.sh
+++ b/
t/t1600-delete-one.sh
@@
-19,27
+19,27
@@
test_expect_success \
test_expect_success \
'Try to delete a non-existing patch' \
'
test_expect_success \
'Try to delete a non-existing patch' \
'
- [ $(stg
applied | wc -l
) -eq 1 ] &&
+ [ $(stg
series --applied -c
) -eq 1 ] &&
command_error stg delete bar &&
command_error stg delete bar &&
- [ $(stg
applied | wc -l
) -eq 1 ]
+ [ $(stg
series --applied -c
) -eq 1 ]
'
test_expect_success \
'Try to delete the topmost patch while dirty' \
'
echo dirty >> foo.txt &&
'
test_expect_success \
'Try to delete the topmost patch while dirty' \
'
echo dirty >> foo.txt &&
- [ $(stg
applied | wc -l
) -eq 1 ] &&
+ [ $(stg
series --applied -c
) -eq 1 ] &&
command_error stg delete foo &&
command_error stg delete foo &&
- [ $(stg
applied | wc -l
) -eq 1 ] &&
+ [ $(stg
series --applied -c
) -eq 1 ] &&
git reset --hard
'
test_expect_success \
'Delete the topmost patch' \
'
git reset --hard
'
test_expect_success \
'Delete the topmost patch' \
'
- [ $(stg
applied | wc -l
) -eq 1 ] &&
+ [ $(stg
series --applied -c
) -eq 1 ] &&
stg delete foo &&
stg delete foo &&
- [ $(stg
applied | wc -l
) -eq 0 ]
+ [ $(stg
series --applied -c
) -eq 0 ]
'
test_expect_success \
'
test_expect_success \
@@
-55,9
+55,9
@@
test_expect_success \
test_expect_success \
'Delete an unapplied patch' \
'
test_expect_success \
'Delete an unapplied patch' \
'
- [ $(stg
unapplied | wc -l
) -eq 1 ] &&
+ [ $(stg
series --unapplied -c
) -eq 1 ] &&
stg delete foo &&
stg delete foo &&
- [ $(stg
unapplied | wc -l
) -eq 0 ]
+ [ $(stg
series --unapplied -c
) -eq 0 ]
'
test_expect_success \
'
test_expect_success \
@@
-76,9
+76,9
@@
test_expect_success \
test_expect_success \
'Try to delete a non-topmost applied patch' \
'
test_expect_success \
'Try to delete a non-topmost applied patch' \
'
- [ $(stg
applied | wc -l
) -eq 2 ] &&
+ [ $(stg
series --applied -c
) -eq 2 ] &&
stg delete foo &&
stg delete foo &&
- [ $(stg
applied | wc -l
) -eq 1 ]
+ [ $(stg
series --applied -c
) -eq 1 ]
'
test_expect_success \
'
test_expect_success \
@@
-99,11
+99,11
@@
test_expect_success \
test_expect_success \
'Delete a patch in another branch' \
'
test_expect_success \
'Delete a patch in another branch' \
'
- [ $(stg
applied | wc -l
) -eq 2 ] &&
- [ $(stg
applied -b br | wc -l
) -eq 1 ] &&
+ [ $(stg
series --applied -c
) -eq 2 ] &&
+ [ $(stg
series --applied -b br -c
) -eq 1 ] &&
stg delete -b br baz &&
stg delete -b br baz &&
- [ $(stg
applied | wc -l
) -eq 2 ] &&
- [ $(stg
applied -b br | wc -l
) -eq 0 ]
+ [ $(stg
series --applied -c
) -eq 2 ] &&
+ [ $(stg
series --applied -b br -c
) -eq 0 ]
'
test_done
'
test_done