~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove misleading "stg delete" documentation
[stgit]
/
t
/
t2900-rename.sh
diff --git
a/t/t2900-rename.sh
b/t/t2900-rename.sh
index
5f47f86
..
32900d0
100755
(executable)
--- a/
t/t2900-rename.sh
+++ b/
t/t2900-rename.sh
@@
-13,7
+13,7
@@
Tests some parts of the stg rename command.'
stg init
test_expect_success 'Rename in empty' '
stg init
test_expect_success 'Rename in empty' '
-
!
stg rename foo
+
command_error
stg rename foo
'
test_expect_success 'Rename single top-most' '
'
test_expect_success 'Rename single top-most' '
@@
-23,7
+23,7
@@
test_expect_success 'Rename single top-most' '
# bar
test_expect_success 'Rename non-existing' '
# bar
test_expect_success 'Rename non-existing' '
-
!
stg rename neithersuchpatch norsuchpatch
+
command_error
stg rename neithersuchpatch norsuchpatch
'
test_expect_success 'Rename with two arguments' '
'
test_expect_success 'Rename with two arguments' '
@@
-33,15
+33,22
@@
test_expect_success 'Rename with two arguments' '
# foo,baz
test_expect_success 'Rename to existing name' '
# foo,baz
test_expect_success 'Rename to existing name' '
-
!
stg rename foo baz
+
command_error
stg rename foo baz
'
test_expect_success 'Rename to same name' '
'
test_expect_success 'Rename to same name' '
-
!
stg rename foo foo
+
command_error
stg rename foo foo
'
test_expect_success 'Rename top-most when others exist' '
stg rename bar
'
'
test_expect_success 'Rename top-most when others exist' '
stg rename bar
'
+test_expect_failure 'Rename hidden' '
+ stg pop &&
+ stg hide bar &&
+ stg rename bar pub &&
+ test "$(echo $(stg series --all))" = "> foo ! pub"
+'
+
test_done
test_done