summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 09a14fb)
raw | patch | inline | side by side (parent: 09a14fb)
author | Simon Hausmann <hausmann@kde.org> | |
Wed, 14 Mar 2007 16:29:46 +0000 (17:29 +0100) | ||
committer | Simon Hausmann <hausmann@kde.org> | |
Wed, 14 Mar 2007 16:31:47 +0000 (17:31 +0100) |
files that are deleted in the future.
Also do some Perforce cleaning
Signed-off-by: Simon Hausmann <hausmann@kde.org>
Also do some Perforce cleaning
Signed-off-by: Simon Hausmann <hausmann@kde.org>
contrib/fast-import/p4-git-sync.py | patch | blob | history |
index 5e307af8c61522e66bddecc62a34136736363d52..02f4b36af35b8a248a94759159d85f05f34b2ba4 100755 (executable)
die("command failed: %s" % cmd)
def check():
- return
if len(p4CmdList("opened ...")) > 0:
die("You have files opened with perforce! Close them before starting the sync.")
config["commits"] = commits
+ print "Creating temporary p4-sync branch from %s ..." % origin
+ system("git checkout -f -b p4-sync %s" % origin)
+
# print "Cleaning index..."
# system("git checkout -f")
print "No changes found to apply between %s and current HEAD" % origin
else:
print "All changes applied!"
+ 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 ...")
os.remove(configFile)