Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Make the p4 data/command cache configurable through the --cache-debug commandline option.
author
Simon Hausmann
<simon@lst.de>
Sat, 10 Mar 2007 09:25:34 +0000
(10:25 +0100)
committer
Simon Hausmann
<simon@lst.de>
Sat, 10 Mar 2007 09:25:34 +0000
(10:25 +0100)
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/p4-fast-export.py
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (from parent 1:
a0f22e9
)
diff --git
a/contrib/fast-import/p4-fast-export.py
b/contrib/fast-import/p4-fast-export.py
index 5d4ed5cf9c678552c6b40de8501a42890d516444..3d2b42b63603c952b2b433240da1d7d532c5beb3 100755
(executable)
--- a/
contrib/fast-import/p4-fast-export.py
+++ b/
contrib/fast-import/p4-fast-export.py
@@
-29,7
+29,8
@@
globalPrefix = globalPrefix[:-1]
try:
globalPrefix = globalPrefix[:-1]
try:
- opts, args = getopt.getopt(sys.argv[1:], "", [ "branch=", "detect-branches", "changesfile=", "silent", "known-branches=" ])
+ opts, args = getopt.getopt(sys.argv[1:], "", [ "branch=", "detect-branches", "changesfile=", "silent", "known-branches=",
+ "cache-debug" ])
except getopt.GetoptError:
print "fixme, syntax error"
sys.exit(1)
except getopt.GetoptError:
print "fixme, syntax error"
sys.exit(1)
@@
-46,6
+47,8
@@
elif o == "--known-branches":
for branch in open(a).readlines():
knownBranches.add(branch[:-1])
elif o == "--known-branches":
for branch in open(a).readlines():
knownBranches.add(branch[:-1])
+ elif o == "--cache-debug":
+ cacheDebug = True
if len(args) == 0 and len(globalPrefix) != 0:
if not silent:
if len(args) == 0 and len(globalPrefix) != 0:
if not silent: