diff options
-rw-r--r-- | cmds.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -393,7 +393,7 @@ class cmd_fast_import_filter(Command): Empty commits (or commits which had all their content filtered out) will be removed, and so are the references to commits not included in the stream. - Flag --preserve-all-history reverses this behavior and makes it possible to + Flag --dont-squash-empty-commits reverses this behavior and makes it possible to use fast-import-filter on incremental streams. :Examples: @@ -424,19 +424,19 @@ class cmd_fast_import_filter(Command): Option('user-map', type=str, help="Path to file containing a map of user-ids.", ), - Option('preserve-all-history', + Option('dont-squash-empty-commits', help="Preserve all commits and links between them" ), ] encoding_type = 'exact' def run(self, source=None, verbose=False, include_paths=None, - exclude_paths=None, user_map=None, preserve_all_history=False): + exclude_paths=None, user_map=None, dont_squash_empty_commits=False): load_fastimport() from fastimport.processors import filter_processor params = { 'include_paths': include_paths, 'exclude_paths': exclude_paths, - 'preserve_all_history': preserve_all_history + 'squash_empty_commits': not dont_squash_empty_commits, } from fastimport import parser stream = _get_source_stream(source) |