[PATCH 2 of 3] convert: add bookmark support to hg source

Edouard Gomez ed.gomez at free.fr
Thu Mar 24 19:38:53 CDT 2011


# HG changeset patch
# User Edouard Gomez <ed.gomez at free.fr>
# Date 1301013527 -3600
# Node ID 4f41fc0febfd3dbf76cdaf4c121ca05f1e3a39cf
# Parent  ed5861a67cb9d20fb034a0d1a78197ea1695e982
convert: add bookmark support to hg source

diff --git a/hgext/convert/hg.py b/hgext/convert/hg.py
--- a/hgext/convert/hg.py
+++ b/hgext/convert/hg.py
@@ -384,3 +384,6 @@
             return hex(self.repo.lookup(rev))
         except error.RepoError:
             return None
+
+    def getbookmarks(self):
+        return bookmarks.listbookmarks(self.repo)


More information about the Mercurial-devel mailing list