Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Default to interactive syncing
author
Simon Hausmann
<hausmann@kde.org>
Fri, 16 Mar 2007 12:47:46 +0000
(13:47 +0100)
committer
Simon Hausmann
<hausmann@kde.org>
Fri, 16 Mar 2007 12:47:46 +0000
(13:47 +0100)
Signed-off-by: Simon Hausmann <hausmann@kde.org>
contrib/fast-import/p4-git-sync.py
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
f72537f
)
diff --git
a/contrib/fast-import/p4-git-sync.py
b/contrib/fast-import/p4-git-sync.py
index e07fcee42c13e98a8a34de982eb3cc2f5bb14b60..ed88debd4599ec1ed88a7872f1aa574e454f7435 100755
(executable)
--- a/
contrib/fast-import/p4-git-sync.py
+++ b/
contrib/fast-import/p4-git-sync.py
@@
-39,7
+39,7
@@
def die(msg):
try:
opts, args = getopt.getopt(sys.argv[1:], "", [ "continue", "git-dir=", "origin=", "reset", "master=",
try:
opts, args = getopt.getopt(sys.argv[1:], "", [ "continue", "git-dir=", "origin=", "reset", "master=",
- "submit-log-subst=", "log-substitutions=", "interactive",
+ "submit-log-subst=", "log-substitutions=", "
non
interactive",
"dry-run" ])
except getopt.GetoptError:
print "fixme, syntax error"
"dry-run" ])
except getopt.GetoptError:
print "fixme, syntax error"
@@
-53,7
+53,7
@@
def die(msg):
master = ""
firstTime = True
reset = False
master = ""
firstTime = True
reset = False
-interactive =
Fals
e
+interactive =
Tru
e
dryRun = False
for o, a in opts:
dryRun = False
for o, a in opts:
@@
-76,8
+76,8
@@
def die(msg):
for line in open(a, "r").readlines():
tokens = line[:-1].split("=")
logSubstitutions[tokens[0]] = tokens[1]
for line in open(a, "r").readlines():
tokens = line[:-1].split("=")
logSubstitutions[tokens[0]] = tokens[1]
- elif o == "--interactive":
- interactive =
Tru
e
+ elif o == "--
non
interactive":
+ interactive =
Fals
e
elif o == "--dry-run":
dryRun = True
elif o == "--dry-run":
dryRun = True