1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-08 18:16:09 +02:00

Slightly improved formatting of the raw_input questions.

Signed-off-by: Simon Hausmann <simon@lst.de>
This commit is contained in:
Simon Hausmann 2007-04-14 16:09:43 +02:00
parent 8b72ca0f76
commit 5e80dd4d7e

View File

@ -277,7 +277,7 @@ class P4Submit(Command):
firstIteration = True firstIteration = True
while response == "e": while response == "e":
if not firstIteration: if not firstIteration:
response = raw_input("Do you want to submit this change (y/e/n)? ") response = raw_input("Do you want to submit this change? [y]es/[e]dit/[n]o ")
firstIteration = False firstIteration = False
if response == "e": if response == "e":
[handle, fileName] = tempfile.mkstemp() [handle, fileName] = tempfile.mkstemp()
@ -344,7 +344,7 @@ class P4Submit(Command):
print "Perforce checkout for depot path %s located at %s" % (depotPath, clientPath) print "Perforce checkout for depot path %s located at %s" % (depotPath, clientPath)
oldWorkingDirectory = os.getcwd() oldWorkingDirectory = os.getcwd()
os.chdir(clientPath) os.chdir(clientPath)
response = raw_input("Do you want to sync %s with p4 sync? (y/n) " % clientPath) response = raw_input("Do you want to sync %s with p4 sync? [y]es/[n]o " % clientPath)
if response == "y" or response == "yes": if response == "y" or response == "yes":
system("p4 sync ...") system("p4 sync ...")
@ -387,7 +387,7 @@ class P4Submit(Command):
print "No changes found to apply between %s and current HEAD" % self.origin print "No changes found to apply between %s and current HEAD" % self.origin
else: else:
print "All changes applied!" print "All changes applied!"
response = raw_input("Do you want to sync from Perforce now using git-p4 rebase (y/n)? ") response = raw_input("Do you want to sync from Perforce now using git-p4 rebase? [y]es/[n]o ")
if response == "y" or response == "yes": if response == "y" or response == "yes":
os.chdir(oldWorkingDirectory) os.chdir(oldWorkingDirectory)
rebase = P4Rebase() rebase = P4Rebase()