From 1bd92b8ae760d6ed8f47c5b74bbdcd2eba6580ba Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 11 Dec 2010 21:48:24 +0100 Subject: [PATCH] SOURCE argument to bzr fast-import-filter is now optional, consistent with examples. --- NEWS | 3 +++ cmds.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 58c64a1..7d2cb12 100644 --- a/NEWS +++ b/NEWS @@ -25,6 +25,9 @@ Bug fixes * Fix indentation when starting p4 fails. (Jelmer Vernooij) +* SOURCE argument to bzr fast-import-filter is now optional, consistent with + examples. (Jelmer Vernooij, #477861) + 0.9 28-Feb-2010 =============== diff --git a/cmds.py b/cmds.py index 40533ac..52170f7 100644 --- a/cmds.py +++ b/cmds.py @@ -406,7 +406,7 @@ class cmd_fast_import_filter(Command): """ hidden = False _see_also = ['fast-import'] - takes_args = ['source'] + takes_args = ['source?'] takes_options = ['verbose', ListOption('include_paths', short_name='i', type=str, help="Only include commits affecting these paths." @@ -420,7 +420,7 @@ class cmd_fast_import_filter(Command): ), ] encoding_type = 'exact' - def run(self, source, verbose=False, include_paths=None, + def run(self, source=None, verbose=False, include_paths=None, exclude_paths=None, user_map=None): load_fastimport() from fastimport.processors import filter_processor -- 2.11.4.GIT