summaryrefslogtreecommitdiff
path: root/contrib/fast-import/git-p4
diff options
context:
space:
mode:
authorLibravatar Simon Hausmann <shausman@trolltech.com>2007-05-23 23:40:48 +0200
committerLibravatar Simon Hausmann <shausman@trolltech.com>2007-05-23 23:40:48 +0200
commit66a2f523958129e9b697d30ed44a5174010cb42a (patch)
tree5fcbf95138fc51ef07e5d121ef0825f04c7c9f6a /contrib/fast-import/git-p4
parentOops, fill the /list/ correct with the p4 exit code. (diff)
downloadtgif-66a2f523958129e9b697d30ed44a5174010cb42a.tar.xz
Catch p4 errors in rollback early enough (before deleting refs!)
Signed-off-by: Simon Hausmann <shausman@trolltech.com>
Diffstat (limited to 'contrib/fast-import/git-p4')
-rwxr-xr-xcontrib/fast-import/git-p43
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4
index 6ae3bc6e5d..6d016b83d4 100755
--- a/contrib/fast-import/git-p4
+++ b/contrib/fast-import/git-p4
@@ -152,6 +152,9 @@ class P4RollBack(Command):
return False
maxChange = int(args[0])
+ if "p4ExitCode" in p4Cmd("p4 changes -m 1"):
+ die("Problems executing p4");
+
if self.rollbackLocalBranches:
refPrefix = "refs/heads/"
lines = mypopen("git rev-parse --symbolic --branches").readlines()