Changed --known-branches to take a file as argument instead of a comma separated...
authorSimon Hausmann <hausmann@kde.org>
Thu, 8 Mar 2007 20:34:40 +0000 (21:34 +0100)
committerSimon Hausmann <hausmann@kde.org>
Thu, 8 Mar 2007 20:34:40 +0000 (21:34 +0100)
Signed-off-by: Simon Hausmann <hausmann@kde.org>
contrib/fast-import/p4-fast-export.py

index a2cca31173e30fb0035d4a2beeb9d848df9cb3cb..5d4ed5cf9c678552c6b40de8501a42890d516444 100755 (executable)
@@ -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: