convert: add bookmark support to common sink/source implementation
authorEdouard Gomez <ed.gomez@free.fr>
Wed, 07 Jul 2010 00:06:59 +0200
changeset 13744 7e525d2f9a75
parent 13743 2d53cefb44e3
child 13745 9ff22f600c6c
convert: add bookmark support to common sink/source implementation
hgext/convert/common.py
--- a/hgext/convert/common.py	Wed Mar 23 11:22:29 2011 +0100
+++ b/hgext/convert/common.py	Wed Jul 07 00:06:59 2010 +0200
@@ -151,6 +151,13 @@
         """
         return None
 
+    def getbookmarks(self):
+        """Return the bookmarks as a dictionary of name: revision
+
+        Bookmark names are to be UTF-8 strings.
+        """
+        return {}
+
 class converter_sink(object):
     """Conversion sink (target) interface"""
 
@@ -228,6 +235,13 @@
     def after(self):
         pass
 
+    def putbookmarks(self, bookmarks):
+        """Put bookmarks into sink.
+
+        bookmarks: {bookmarkname: sink_rev_id, ...}
+        where bookmarkname is an UTF-8 string.
+        """
+        pass
 
 class commandline(object):
     def __init__(self, ui, command):