Mercurial > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
10070:9d1195b2f00d | 10071:661980567246 |
---|---|
910 arg = encodeargs(args) | 910 arg = encodeargs(args) |
911 hgexe = util.hgexecutable() | 911 hgexe = util.hgexecutable() |
912 cmd = '%s debugsvnlog' % util.shellquote(hgexe) | 912 cmd = '%s debugsvnlog' % util.shellquote(hgexe) |
913 stdin, stdout = util.popen2(cmd) | 913 stdin, stdout = util.popen2(cmd) |
914 stdin.write(arg) | 914 stdin.write(arg) |
915 stdin.close() | 915 try: |
916 stdin.close() | |
917 except IOError: | |
918 raise util.Abort(_('Mercurial failed to run itself, check' | |
919 ' hg executable is in PATH')) | |
916 return logstream(stdout) | 920 return logstream(stdout) |
917 | 921 |
918 pre_revprop_change = '''#!/bin/sh | 922 pre_revprop_change = '''#!/bin/sh |
919 | 923 |
920 REPOS="$1" | 924 REPOS="$1" |