Show More
@@ -75,6 +75,8 b' class converter_source(object):' | |||
|
75 | 75 | if not encoding: |
|
76 | 76 | encoding = self.encoding or 'utf-8' |
|
77 | 77 | |
|
78 | if isinstance(s, unicode): | |
|
79 | return s.encode("utf-8") | |
|
78 | 80 | try: |
|
79 | 81 | return s.decode(encoding).encode("utf-8") |
|
80 | 82 | except: |
@@ -278,7 +278,8 b' class convert_svn(converter_source):' | |||
|
278 | 278 | def revid(self, revnum, module=None): |
|
279 | 279 | if not module: |
|
280 | 280 | module = self.module |
|
281 |
return |
|
|
281 | return u"svn:%s%s@%s" % (self.uuid, module.decode(self.encoding), | |
|
282 | revnum) | |
|
282 | 283 | |
|
283 | 284 | def revnum(self, rev): |
|
284 | 285 | return int(rev.split('@')[-1]) |
General Comments 0
You need to be logged in to leave comments.
Login now