handle OSErrors possibly raised when kill()ing subprocess

This commit is contained in:
josh committed 2013-05-23 10:22:01 -04:00
1 parent a23c74a70a
commit 20e2498f39
1 file changed
+3
+3
View File
@@ -539,7 +539,10 @@ def find_branched_revision(svn, branch_url, branch_path, base_path):
new_path, old_path, rev = m.group(1, 2, 3)
if new_path == search_path:
if old_path == base_path:
try:
p.kill()
except OSError:
pass
return (int(rev), old_path)
search_path = old_path
return (-1, '')