tests: add tests for non-existant branch/tag/bookmark
authorIdan Kamara <idankk86@gmail.com>
Sun, 10 Apr 2011 11:30:53 +0300
changeset 13925 c315ffc13a25
parent 13924 ea726c97c1b6
child 13926 61ba09d8d118
tests: add tests for non-existant branch/tag/bookmark
tests/test-bookmarks.t
tests/test-revset.t
--- a/tests/test-bookmarks.t	Sun Apr 10 10:01:42 2011 +0900
+++ b/tests/test-bookmarks.t	Sun Apr 10 11:30:53 2011 +0300
@@ -84,6 +84,10 @@
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     1
   
+  $ hg log -r 'bookmark(unknown)'
+  abort: bookmark 'unknown' does not exist
+  [255]
+
   $ hg help revsets | grep 'bookmark('
       "bookmark([name])"
 
--- a/tests/test-revset.t	Sun Apr 10 10:01:42 2011 +0900
+++ b/tests/test-revset.t	Sun Apr 10 11:30:53 2011 +0300
@@ -297,6 +297,12 @@
   6
   $ log 'tag(tip)'
   9
+  $ log 'tag(unknown)'
+  abort: tag 'unknown' does not exist
+  [255]
+  $ log 'branch(unknown)'
+  abort: unknown revision 'unknown'!
+  [255]
   $ log 'user(bob)'
   2