##// END OF EJS Templates
convert: set LC_CTYPE around calls to Subversion bindings...
Manuel Jacob -
r45551:5c0d5b48 stable
parent child Browse files
Show More
@@ -187,6 +187,7 b' def debugsvnlog(ui, **opts):'
187 187 """Fetch SVN log in a subprocess and channel them back to parent to
188 188 avoid memory collection issues.
189 189 """
190 with util.with_lc_ctype():
190 191 if svn is None:
191 192 raise error.Abort(
192 193 _(b'debugsvnlog could not load Subversion python bindings')
@@ -420,6 +421,7 b' class svn_source(converter_source):'
420 421 self.url = geturl(url)
421 422 self.encoding = b'UTF-8' # Subversion is always nominal UTF-8
422 423 try:
424 with util.with_lc_ctype():
423 425 self.transport = transport.SvnRaTransport(url=self.url)
424 426 self.ra = self.transport.ra
425 427 self.ctx = self.transport.client
@@ -477,6 +479,7 b' class svn_source(converter_source):'
477 479 )
478 480
479 481 try:
482 with util.with_lc_ctype():
480 483 self.head = self.latest(self.module, latest)
481 484 except SvnPathNotFound:
482 485 self.head = None
@@ -494,6 +497,13 b' class svn_source(converter_source):'
494 497 self.wc = None
495 498 self.convertfp = None
496 499
500 def before(self):
501 self.with_lc_ctype = util.with_lc_ctype()
502 self.with_lc_ctype.__enter__()
503
504 def after(self):
505 self.with_lc_ctype.__exit__(None, None, None)
506
497 507 def setrevmap(self, revmap):
498 508 lastrevs = {}
499 509 for revid in revmap:
General Comments 0
You need to be logged in to leave comments. Login now