Commits

Anonymous committed 2d2de4b

added testcase for shelving without patch names:

from a new repo with attic enabled:
... do something
hg shelve
... fails
hg shelve patch1
... do something
hg shelve
... should fail

  • Participants
  • Parent commits be6e118

Comments (0)

Files changed (2)

File tests/test-shelve.bat

 echo a > a.txt
 call hg addrem
 call hg st
+echo ### call hg shelve (should fail)
+call hg shelve
 rem use git format for this so that dates are gone from the default diffs
+echo ### call hg shelve --git a
 call hg shelve --git a
+echo ### call hg shelve (should fail)
+call hg shelve
 echo ### a contents
 type .hg\attic\a
 echo ### hg st

File tests/test-shelve.out

  adding a.txt
 A a.txt
+### call hg shelve (should fail)
+abort: you need to supply a patch name
+### call hg shelve --git a
 Patch a shelved
+### call hg shelve (should fail)
+abort: you need to supply a patch name
 ### a contents
 diff --git a/a.txt b/a.txt
 new file mode 100644