summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7243b35)
raw | patch | inline | side by side (parent: 7243b35)
author | Simon Hausmann <simon@lst.de> | |
Mon, 9 Apr 2007 10:43:40 +0000 (12:43 +0200) | ||
committer | Simon Hausmann <simon@lst.de> | |
Mon, 9 Apr 2007 10:43:40 +0000 (12:43 +0200) |
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4 | patch | blob | history |
index 72fa48af04a7dc4f3c736ad4c0642631dab41370..4fbfaf11b673dafdb2dea608c09f0b87f8c05d79 100755 (executable)
sys.exit(128)
print "Perforce checkout for depot path %s located at %s" % (depotPath, clientPath)
+ oldWorkingDirectory = os.getcwd()
os.chdir(clientPath)
response = raw_input("Do you want to sync %s with p4 sync? (y/n) " % clientPath)
if response == "y" or response == "yes":
print "Cleaning out your perforce checkout by doing p4 edit ... ; p4 revert ..."
system("p4 edit ... >/dev/null")
system("p4 revert ... >/dev/null")
+ response = raw_input("Do you want to sync from Perforce now using git-p4 rebase (y/n)? ")
+ if response == "y" or response == "yes":
+ os.chdir(oldWorkingDirectory)
+ rebase = P4Rebase()
+ rebase.run([])
os.remove(self.configFile)
return True