From: Simon Hausmann Date: Thu, 8 Mar 2007 20:34:40 +0000 (+0100) Subject: Changed --known-branches to take a file as argument instead of a comma separated... X-Git-Url: http://crossforests.com/gitweb?a=commitdiff_plain;h=934371385c6e2e26132190542f4082c1655587e7;p=python%2Ffast-export.git Changed --known-branches to take a file as argument instead of a comma separated list. Signed-off-by: Simon Hausmann --- diff --git a/contrib/fast-import/p4-fast-export.py b/contrib/fast-import/p4-fast-export.py index a2cca31..5d4ed5c 100755 --- a/contrib/fast-import/p4-fast-export.py +++ b/contrib/fast-import/p4-fast-export.py @@ -44,8 +44,8 @@ for o, a in opts: elif o == "--silent": silent= True elif o == "--known-branches": - for branch in o.split(","): - knownBranches.add(branch) + for branch in open(a).readlines(): + knownBranches.add(branch[:-1]) if len(args) == 0 and len(globalPrefix) != 0: if not silent: