Changed --known-branches to take a file as argument instead of a comma separated list.

Signed-off-by: Simon Hausmann <hausmann@kde.org>
maint
Simon Hausmann 2007-03-08 21:34:40 +01:00
parent 3ef674bd4b
commit 934371385c
1 changed files with 2 additions and 2 deletions

View File

@ -44,8 +44,8 @@ for o, a in opts:
elif o == "--silent": elif o == "--silent":
silent= True silent= True
elif o == "--known-branches": elif o == "--known-branches":
for branch in o.split(","): for branch in open(a).readlines():
knownBranches.add(branch) knownBranches.add(branch[:-1])


if len(args) == 0 and len(globalPrefix) != 0: if len(args) == 0 and len(globalPrefix) != 0:
if not silent: if not silent: