Changed --known-branches to take a file as argument instead of a comma separated list.
Signed-off-by: Simon Hausmann <hausmann@kde.org>
Simon Hausmann committed
Mar 8, 2007 at 21:34 UTC
934371385c6e2e26132190542f4082c1655587e7
1 file changed
+2
-2
contrib/fast-import/p4-fast-export.py
+2
-2
@@ -44,8 +44,8 @@ for o, a in opts:
44
elif o == "--silent":
45
silent= True
46
elif o == "--known-branches":
47
- for branch in o.split(","):
48
- knownBranches.add(branch)
47
+ for branch in open(a).readlines():
48
+ knownBranches.add(branch[:-1])
49
50
if len(args) == 0 and len(globalPrefix) != 0:
51
if not silent: