Make the p4 data/command cache configurable through the --cache-debug commandline option.
Signed-off-by: Simon Hausmann <simon@lst.de>
Simon Hausmann committed
Mar 10, 2007 at 10:25 UTC
59f1d2b52d71c5082359f4caa9af5752f90d26a9
1 file changed
+4
-1
contrib/fast-import/p4-fast-export.py
+4
-1
@@ -29,7 +29,8 @@ if len(globalPrefix) != 0:
29
globalPrefix = globalPrefix[:-1]
30
31
try:
32
- opts, args = getopt.getopt(sys.argv[1:], "", [ "branch=", "detect-branches", "changesfile=", "silent", "known-branches=" ])
32
+ opts, args = getopt.getopt(sys.argv[1:], "", [ "branch=", "detect-branches", "changesfile=", "silent", "known-branches=",
33
+ "cache-debug" ])
34
except getopt.GetoptError:
35
print "fixme, syntax error"
36
sys.exit(1)
@@ -46,6 +47,8 @@ for o, a in opts:
47
elif o == "--known-branches":
48
for branch in open(a).readlines():
49
knownBranches.add(branch[:-1])
50
+ elif o == "--cache-debug":
51
+ cacheDebug = True
52
53
if len(args) == 0 and len(globalPrefix) != 0:
54
if not silent: