Mercurial > hg
changeset 13744:7e525d2f9a75
convert: add bookmark support to common sink/source implementation
author | Edouard Gomez <ed.gomez@free.fr> |
---|---|
date | Wed, 07 Jul 2010 00:06:59 +0200 |
parents | 2d53cefb44e3 |
children | 9ff22f600c6c |
files | hgext/convert/common.py |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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):