comparison hgext/convert/common.py @ 8887:0332f8b44e54

convert/svn: test svn tags encoding
author Patrick Mezard <pmezard@gmail.com>
date Sun, 21 Jun 2009 23:17:05 +0200
parents 68e0a55eee6e
children eac360045ba4
comparison
equal deleted inserted replaced
8886:0593c5b5b1f0 8887:0332f8b44e54
101 def getcommit(self, version): 101 def getcommit(self, version):
102 """Return the commit object for version""" 102 """Return the commit object for version"""
103 raise NotImplementedError() 103 raise NotImplementedError()
104 104
105 def gettags(self): 105 def gettags(self):
106 """Return the tags as a dictionary of name: revision""" 106 """Return the tags as a dictionary of name: revision
107
108 Tag names must be UTF-8 strings.
109 """
107 raise NotImplementedError() 110 raise NotImplementedError()
108 111
109 def recode(self, s, encoding=None): 112 def recode(self, s, encoding=None):
110 if not encoding: 113 if not encoding:
111 encoding = self.encoding or 'utf-8' 114 encoding = self.encoding or 'utf-8'
196 """ 199 """
197 raise NotImplementedError() 200 raise NotImplementedError()
198 201
199 def puttags(self, tags): 202 def puttags(self, tags):
200 """Put tags into sink. 203 """Put tags into sink.
201 tags: {tagname: sink_rev_id, ...}""" 204
205 tags: {tagname: sink_rev_id, ...} where tagname is an UTF-8 string.
206 """
202 raise NotImplementedError() 207 raise NotImplementedError()
203 208
204 def setbranch(self, branch, pbranches): 209 def setbranch(self, branch, pbranches):
205 """Set the current branch name. Called before the first putcommit 210 """Set the current branch name. Called before the first putcommit
206 on the branch. 211 on the branch.