Mercurial > hg
changeset 14505:90ef40bf97e3 stable
subrepo: svn abort now depends on exit code (issue2833)
author | Regis Desgroppes <regis.desgroppes@nokia.com> |
---|---|
date | Tue, 31 May 2011 16:22:04 -0500 |
parents | c59968e8b579 |
children | 733af5d9f6b2 |
files | mercurial/subrepo.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/subrepo.py Tue May 24 17:16:31 2011 -0500 +++ b/mercurial/subrepo.py Tue May 31 16:22:04 2011 -0500 @@ -540,11 +540,13 @@ env['LC_MESSAGES'] = 'C' p = subprocess.Popen(cmd, bufsize=-1, close_fds=util.closefds, stdout=subprocess.PIPE, stderr=subprocess.PIPE, - universal_newlines=True, env=env) + universal_newlines=True, env=env) stdout, stderr = p.communicate() stderr = stderr.strip() + if p.returncode: + raise util.Abort(stderr or 'exited with code %d' % p.returncode) if stderr: - raise util.Abort(stderr) + self._ui.warn(stderr + '\n') return stdout @propertycache