Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Slightly improved formatting of the raw_input questions.
author
Simon Hausmann
<simon@lst.de>
Sat, 14 Apr 2007 14:09:43 +0000
(16:09 +0200)
committer
Simon Hausmann
<simon@lst.de>
Sat, 14 Apr 2007 14:09:43 +0000
(16:09 +0200)
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
8b72ca0
)
diff --git
a/contrib/fast-import/git-p4
b/contrib/fast-import/git-p4
index 3202a819cad3dee9daf9d209ff1d5402a1d1f3de..9c9852c75f6eda6cd5d1aca29dbc1aa435069e39 100755
(executable)
--- a/
contrib/fast-import/git-p4
+++ b/
contrib/fast-import/git-p4
@@
-277,7
+277,7
@@
class P4Submit(Command):
firstIteration = True
while response == "e":
if not firstIteration:
firstIteration = True
while response == "e":
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
if response == "e":
[handle, fileName] = tempfile.mkstemp()
firstIteration = False
if response == "e":
[handle, fileName] = tempfile.mkstemp()
@@
-344,7
+344,7
@@
class P4Submit(Command):
print "Perforce checkout for depot path %s located at %s" % (depotPath, clientPath)
oldWorkingDirectory = os.getcwd()
os.chdir(clientPath)
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)
+ response = raw_input("Do you want to sync %s with p4 sync?
[y]es/[n]o
" % clientPath)
if response == "y" or response == "yes":
system("p4 sync ...")
if response == "y" or response == "yes":
system("p4 sync ...")
@@
-387,7
+387,7
@@
class P4Submit(Command):
print "No changes found to apply between %s and current HEAD" % self.origin
else:
print "All changes applied!"
print "No changes found to apply between %s and current HEAD" % self.origin
else:
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":
os.chdir(oldWorkingDirectory)
rebase = P4Rebase()
if response == "y" or response == "yes":
os.chdir(oldWorkingDirectory)
rebase = P4Rebase()