[PATCH] identify: list bookmarks for remote repositories

Nils Adermann naderman at naderman.de
Sat Mar 12 11:26:57 CST 2011


# HG changeset patch
# User Nils Adermann <naderman at naderman.de>
# Date 1299950114 -3600
# Node ID 65a9a99adaf5c58d380392a548e7c4451c21eea5
# Parent  1bb2a56a9d73b386378564381807fdf8df38ea3f
identify: list bookmarks for remote repositories

diff -r 1bb2a56a9d73 -r 65a9a99adaf5 mercurial/commands.py
--- a/mercurial/commands.py	Thu Mar 10 13:43:47 2011 +0100
+++ b/mercurial/commands.py	Sat Mar 12 18:15:14 2011 +0100
@@ -2281,6 +2281,12 @@
             raise util.Abort(_("can't query remote revision number,"
                              " branch, tags, or bookmarks"))
         output = [hexfunc(repo.lookup(rev))]
+
+        if 'bookmarks' in repo.listkeys('namespaces'):
+            bm = '/'.join(repo.listkeys('bookmarks'))
+            if bm:
+                output.append(bm)
+
     elif not rev:
         ctx = repo[None]
         parents = ctx.parents()


More information about the Mercurial-devel mailing list