##// END OF EJS Templates
subrepo: tell Subversion when we are non-interactive (issue2759)...
Augie Fackler -
r14025:1052b142 stable
parent child Browse files
Show More
@@ -522,7 +522,16 b' class svnsubrepo(abstractsubrepo):'
522
522
523 def _svncommand(self, commands, filename=''):
523 def _svncommand(self, commands, filename=''):
524 path = os.path.join(self._ctx._repo.origroot, self._path, filename)
524 path = os.path.join(self._ctx._repo.origroot, self._path, filename)
525 cmd = ['svn'] + commands + [path]
525 cmd = ['svn']
526 # Starting in svn 1.5 --non-interactive is a global flag
527 # instead of being per-command, but we need to support 1.4 so
528 # we have to be intelligent about what commands take
529 # --non-interactive.
530 if (not self._ui.interactive() and
531 commands[0] in ('update', 'checkout', 'commit')):
532 cmd.append('--non-interactive')
533 cmd.extend(commands)
534 cmd.append(path)
526 env = dict(os.environ)
535 env = dict(os.environ)
527 # Avoid localized output, preserve current locale for everything else.
536 # Avoid localized output, preserve current locale for everything else.
528 env['LC_MESSAGES'] = 'C'
537 env['LC_MESSAGES'] = 'C'
General Comments 0
You need to be logged in to leave comments. Login now