# HG changeset patch # User Edouard Gomez # Date 1278454019 -7200 # Node ID 7e525d2f9a75fba3af66a2425c67aa201fa618ae # Parent 2d53cefb44e3cc8c9d4bedc95894ae173d7b7773 convert: add bookmark support to common sink/source implementation diff -r 2d53cefb44e3 -r 7e525d2f9a75 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):