From: Simon Hausmann Date: Sat, 10 Mar 2007 09:25:34 +0000 (+0100) Subject: Make the p4 data/command cache configurable through the --cache-debug commandline option. X-Git-Tag: v1.5.3-rc0~65^2^2~193 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/59f1d2b52d71c5082359f4caa9af5752f90d26a9?ds=sidebyside;hp=a0f22e996c9d2f0e2a4a8feae852478f4aa667b5 Make the p4 data/command cache configurable through the --cache-debug commandline option. Signed-off-by: Simon Hausmann --- 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 @@ 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 @@ 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: