Mercurial > hg > mercurial-crew-with-dirclash
comparison hgext/convert/subversion.py @ 5287:c6f932d3e0f6
Don't decode unicode strings.
This does not work with python2.3 and is probably not useful anyway with 2.4.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 07 Sep 2007 16:14:51 +0200 |
parents | 694eb9ccb54d |
children | 6aba1835a7b3 |
comparison
equal
deleted
inserted
replaced
5286:cbec83d9b0b4 | 5287:c6f932d3e0f6 |
---|---|
276 # -- helper functions -- | 276 # -- helper functions -- |
277 | 277 |
278 def revid(self, revnum, module=None): | 278 def revid(self, revnum, module=None): |
279 if not module: | 279 if not module: |
280 module = self.module | 280 module = self.module |
281 return (u"svn:%s%s@%s" % (self.uuid, module, revnum)).decode(self.encoding) | 281 return u"svn:%s%s@%s" % (self.uuid, module.decode(self.encoding), |
282 revnum) | |
282 | 283 |
283 def revnum(self, rev): | 284 def revnum(self, rev): |
284 return int(rev.split('@')[-1]) | 285 return int(rev.split('@')[-1]) |
285 | 286 |
286 def revsplit(self, rev): | 287 def revsplit(self, rev): |