From: Simon Hausmann Date: Wed, 23 May 2007 21:27:31 +0000 (+0200) Subject: Don't make len(p4Cmd("p4 changes -m 1 //foo/...")) == 0 succeed when the p4 command... X-Git-Url: http://crossforests.com/gitweb?a=commitdiff_plain;h=409a4ab6ea66b630e1dbb52c1cdac2aefa855928;p=python%2Ffast-export.git Don't make len(p4Cmd("p4 changes -m 1 //foo/...")) == 0 succeed when the p4 command itself failed. When the p4 command failed write out the exit code in the returned dict. --- diff --git a/git-p4 b/git-p4 index f12ad8b..89a85eb 100755 --- a/git-p4 +++ b/git-p4 @@ -31,7 +31,9 @@ def p4CmdList(cmd): result.append(entry) except EOFError: pass - pipe.close() + exitCode = pipe.close() + if exitCode != None: + result["p4ExitCode"] = exitCode return result