--- 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