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