@matheusbsbs / matheus-bagliano / commits / a6d5da36af
Fork 0

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. Signed-off-by: Simon Hausmann <shausman@trolltech.com>

Simon Hausmann committed May 23, 2007 at 23:27 UTC a6d5da36af9a7087cf14e717b72c66ef2c34eb3b
1 file changed +3 -1
contrib/fast-import/git-p4
+3 -1
@@ -31,7 +31,9 @@ def p4CmdList(cmd):
31 result.append(entry)
32 except EOFError:
33 pass
34 - pipe.close()
34 + exitCode = pipe.close()
35 + if exitCode != None:
36 + result["p4ExitCode"] = exitCode
37
38 return result
39