diff options
author | Simon Hausmann <hausmann@kde.org> | 2007-03-08 21:34:40 +0100 |
---|---|---|
committer | Simon Hausmann <hausmann@kde.org> | 2007-03-08 21:34:40 +0100 |
commit | 934371385c6e2e26132190542f4082c1655587e7 (patch) | |
tree | 91ec40d0a78f37f0e92964197b62ab7b4787e16c /contrib | |
parent | Work in progress on detecting branches. (diff) | |
download | tgif-934371385c6e2e26132190542f4082c1655587e7.tar.xz |
Changed --known-branches to take a file as argument instead of a comma separated list.
Signed-off-by: Simon Hausmann <hausmann@kde.org>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/fast-import/p4-fast-export.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/fast-import/p4-fast-export.py b/contrib/fast-import/p4-fast-export.py index a2cca31173..5d4ed5cf9c 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: |