# HG changeset patch # User Matt Mackall # Date 2011-04-30 07:42:05 # Node ID 30ccb7d03864189356db39a0e1019268bc14c416 # Parent b24e5a708fad13c3ff723623c1fa6ae386adc7b7 # Parent 1052b1421a48d9a852d5b8ccf688c0f06651d5b6 merge with stable diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -512,7 +512,16 @@ class svnsubrepo(abstractsubrepo): def _svncommand(self, commands, filename=''): path = os.path.join(self._ctx._repo.origroot, self._path, filename) - cmd = ['svn'] + commands + [path] + cmd = ['svn'] + # Starting in svn 1.5 --non-interactive is a global flag + # instead of being per-command, but we need to support 1.4 so + # we have to be intelligent about what commands take + # --non-interactive. + if (not self._ui.interactive() and + commands[0] in ('update', 'checkout', 'commit')): + cmd.append('--non-interactive') + cmd.extend(commands) + cmd.append(path) env = dict(os.environ) # Avoid localized output, preserve current locale for everything else. env['LC_MESSAGES'] = 'C'