summaryrefslogtreecommitdiff
path: root/contrib/fast-import
diff options
context:
space:
mode:
authorLibravatar Simon Hausmann <simon@lst.de>2007-03-10 10:25:34 +0100
committerLibravatar Simon Hausmann <simon@lst.de>2007-03-10 10:25:34 +0100
commit59f1d2b52d71c5082359f4caa9af5752f90d26a9 (patch)
tree13b6dc0c9a40060d0b0132d47c3c304407ef9c2e /contrib/fast-import
parentFixed p4-debug file extension. (diff)
downloadtgif-59f1d2b52d71c5082359f4caa9af5752f90d26a9.tar.xz
Make the p4 data/command cache configurable through the --cache-debug commandline option.
Signed-off-by: Simon Hausmann <simon@lst.de>
Diffstat (limited to 'contrib/fast-import')
-rwxr-xr-xcontrib/fast-import/p4-fast-export.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/fast-import/p4-fast-export.py b/contrib/fast-import/p4-fast-export.py
index 5d4ed5cf9c..3d2b42b636 100755
--- a/contrib/fast-import/p4-fast-export.py
+++ b/contrib/fast-import/p4-fast-export.py
@@ -29,7 +29,8 @@ if len(globalPrefix) != 0:
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)
@@ -46,6 +47,8 @@ for o, a in opts:
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: