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

Comments (0)

Files changed (2)

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

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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.