Mercurial > hg
diff hgext/convert/subversion.py @ 10071:661980567246 stable
convert/svn: better handling of hg recursive call failure
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 14 Dec 2009 22:09:49 +0100 |
parents | a02d43acbc04 |
children | 08a0f04b56bd |
line wrap: on
line diff
--- a/hgext/convert/subversion.py Mon Dec 14 21:21:34 2009 +0200 +++ b/hgext/convert/subversion.py Mon Dec 14 22:09:49 2009 +0100 @@ -912,7 +912,11 @@ cmd = '%s debugsvnlog' % util.shellquote(hgexe) stdin, stdout = util.popen2(cmd) stdin.write(arg) - stdin.close() + try: + stdin.close() + except IOError: + raise util.Abort(_('Mercurial failed to run itself, check' + ' hg executable is in PATH')) return logstream(stdout) pre_revprop_change = '''#!/bin/sh