summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Simon Hausmann <hausmann@kde.org>2007-03-15 19:07:06 +0100
committerLibravatar Simon Hausmann <hausmann@kde.org>2007-03-15 19:07:06 +0100
commitf72537f97e81398b597c05f12c112c52e8201b63 (patch)
treed173cbb2eef3ac714ef4e9ef707f5b41a882feae
parentAuto-detect the current git branch before submitting back to perforce. (diff)
downloadtgif-f72537f97e81398b597c05f12c112c52e8201b63.tar.xz
Use p4 revert ... instead of revert -a ... after submitting, to make sure the p4 checkout is clean.
Signed-off-by: Simon Hausmann <hausmann@kde.org>
-rwxr-xr-xcontrib/fast-import/p4-git-sync.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/fast-import/p4-git-sync.py b/contrib/fast-import/p4-git-sync.py
index 4f02079895..e07fcee42c 100755
--- a/contrib/fast-import/p4-git-sync.py
+++ b/contrib/fast-import/p4-git-sync.py
@@ -276,8 +276,8 @@ if len(commits) == 0:
print "Deleting temporary p4-sync branch and going back to %s" % master
system("git checkout %s" % master)
system("git branch -D p4-sync")
- print "Cleaning out your perforce checkout by doing p4 edit ... ; p4 revert -a ..."
- system("p4 edit ...")
- system("p4 revert -a ...")
+ print "Cleaning out your perforce checkout by doing p4 edit ... ; p4 revert ..."
+ system("p4 edit ... >/dev/null")
+ system("p4 revert ... >/dev/null")
os.remove(configFile)