Show More
@@ -75,6 +75,8 b' class converter_source(object):' | |||||
75 | if not encoding: |
|
75 | if not encoding: | |
76 | encoding = self.encoding or 'utf-8' |
|
76 | encoding = self.encoding or 'utf-8' | |
77 |
|
77 | |||
|
78 | if isinstance(s, unicode): | |||
|
79 | return s.encode("utf-8") | |||
78 | try: |
|
80 | try: | |
79 | return s.decode(encoding).encode("utf-8") |
|
81 | return s.decode(encoding).encode("utf-8") | |
80 | except: |
|
82 | except: |
@@ -278,7 +278,8 b' class convert_svn(converter_source):' | |||||
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 |
|
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]) |
General Comments 0
You need to be logged in to leave comments.
Login now