changeset 13925:c315ffc13a25

tests: add tests for non-existant branch/tag/bookmark
author Idan Kamara <idankk86@gmail.com>
date Sun, 10 Apr 2011 11:30:53 +0300
parents ea726c97c1b6
children 61ba09d8d118
files tests/test-bookmarks.t tests/test-revset.t
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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