[PATCH 2 of 2] tests: add tests for bookmarks support in hg identify

David Soria Parra dsp at php.net
Sun Mar 13 08:36:41 CDT 2011


# HG changeset patch
# User David Soria Parra <dsp at php.net>
# Date 1300023317 -3600
# Node ID 682a5c359848b081efbcde7ec535dc000840584e
# Parent  2d21886a921d660d7e4a5745b745fe2aaceed7c0
tests: add tests for bookmarks support in hg identify

diff --git a/tests/test-identify.t b/tests/test-identify.t
--- a/tests/test-identify.t
+++ b/tests/test-identify.t
@@ -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


More information about the Mercurial-devel mailing list