Catch p4 errors in rollback early enough (before deleting refs!)

This commit is contained in:
Simon Hausmann
2007-05-23 23:40:48 +02:00
parent d1edf40a27
commit 244b953db5

3
git-p4
View File

@@ -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()