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

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>

Simon Hausmann committed Mar 15, 2007 at 19:07 UTC f72537f97e81398b597c05f12c112c52e8201b63
1 file changed +3 -3
contrib/fast-import/p4-git-sync.py
+3 -3
@@ -276,8 +276,8 @@ if len(commits) == 0:
276 print "Deleting temporary p4-sync branch and going back to %s" % master
277 system("git checkout %s" % master)
278 system("git branch -D p4-sync")
279 - print "Cleaning out your perforce checkout by doing p4 edit ... ; p4 revert -a ..."
280 - system("p4 edit ...")
281 - system("p4 revert -a ...")
279 + print "Cleaning out your perforce checkout by doing p4 edit ... ; p4 revert ..."
280 + system("p4 edit ... >/dev/null")
281 + system("p4 revert ... >/dev/null")
282 os.remove(configFile)
283