tests: add tests for bookmarks support in hg identify
authorDavid Soria Parra <dsp@php.net>
Sun, 13 Mar 2011 14:35:17 +0100
changeset 13645 3786b810ea75
parent 13644 7e6c2f58ad56
child 13646 31eac42d9123
tests: add tests for bookmarks support in hg identify
tests/test-identify.t
--- a/tests/test-identify.t	Sat Mar 12 18:15:14 2011 +0100
+++ b/tests/test-identify.t	Sun Mar 13 14:35:17 2011 +0100
@@ -80,6 +80,29 @@
   abort: can't query remote revision number, branch, or tags
   [255]
 
+test bookmark support
+
+  $ hg bookmark Y
+  $ hg bookmark Z
+  $ hg bookmarks
+     Y                         0:cb9a9f314b8b
+   * Z                         0:cb9a9f314b8b
+  $ hg id
+  cb9a9f314b8b+ tip Y/Z
+  $ hg id --bookmarks
+  Y Z
+
+test remote identify with bookmarks
+
+  $ hg id http://localhost:$HGPORT1/
+  cb9a9f314b8b Y/Z
+  $ hg id --bookmarks http://localhost:$HGPORT1/
+  Y Z
+  $ hg id -r . http://localhost:$HGPORT1/
+  cb9a9f314b8b Y/Z
+  $ hg id --bookmarks -r . http://localhost:$HGPORT1/
+  Y Z
+
 Make sure we do not obscure unknown requires file entries (issue2649)
 
   $ echo fake >> .hg/requires