Slightly improved formatting of the raw_input questions.
Signed-off-by: Simon Hausmann <simon@lst.de>
Simon Hausmann committed
Apr 14, 2007 at 16:09 UTC
5e80dd4d7e34fdd507997615d7fdefc2411571eb
1 file changed
+3
-3
contrib/fast-import/git-p4
+3
-3
@@ -277,7 +277,7 @@ class P4Submit(Command):
277
firstIteration = True
278
while response == "e":
279
if not firstIteration:
280
- response = raw_input("Do you want to submit this change (y/e/n)? ")
280
+ response = raw_input("Do you want to submit this change? [y]es/[e]dit/[n]o ")
281
firstIteration = False
282
if response == "e":
283
[handle, fileName] = tempfile.mkstemp()
@@ -344,7 +344,7 @@ class P4Submit(Command):
344
print "Perforce checkout for depot path %s located at %s" % (depotPath, clientPath)
345
oldWorkingDirectory = os.getcwd()
346
os.chdir(clientPath)
347
- response = raw_input("Do you want to sync %s with p4 sync? (y/n) " % clientPath)
347
+ response = raw_input("Do you want to sync %s with p4 sync? [y]es/[n]o " % clientPath)
348
if response == "y" or response == "yes":
349
system("p4 sync ...")
350
@@ -387,7 +387,7 @@ class P4Submit(Command):
387
print "No changes found to apply between %s and current HEAD" % self.origin
388
else:
389
print "All changes applied!"
390
- response = raw_input("Do you want to sync from Perforce now using git-p4 rebase (y/n)? ")
390
+ response = raw_input("Do you want to sync from Perforce now using git-p4 rebase? [y]es/[n]o ")
391
if response == "y" or response == "yes":
392
os.chdir(oldWorkingDirectory)
393
rebase = P4Rebase()