diff options
author | 2012-10-16 03:42:46 -0700 | |
---|---|---|
committer | 2012-10-16 13:28:49 -0700 | |
commit | f2a649c1e2a61e7f5063e604e5eedfda9a0be811 (patch) | |
tree | 07e24a7d53152510d30f2770b6184fa6ef1a96a6 | |
parent | use custom function for breaking up portage version markers in commits (diff) | |
download | git-conversion-tools-f2a649c1e2a61e7f5063e604e5eedfda9a0be811.tar.gz git-conversion-tools-f2a649c1e2a61e7f5063e604e5eedfda9a0be811.tar.bz2 git-conversion-tools-f2a649c1e2a61e7f5063e604e5eedfda9a0be811.zip |
Ensure that this can process as it goes, rather than having to get all targets up front
-rwxr-xr-x | rewrite-commit-dump.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rewrite-commit-dump.py b/rewrite-commit-dump.py index e08a9cf..b25a7b7 100755 --- a/rewrite-commit-dump.py +++ b/rewrite-commit-dump.py @@ -213,9 +213,12 @@ def simple_dedup(records): def main(argv): records = [] + # Be careful here to just iterate over source; doing so allows this script + # to do basic processing as it goes (specifically while it's being fed from + # the mainline cvs2git parallelized repo creator). source = argv if argv else sys.stdin - directories = [x.strip() for x in source] - for directory in directories: + for directory in source: + directory = directory.strip() tmp = os.path.join(directory, 'cvs2svn-tmp') commits = os.path.join(tmp, 'git-dump.dat') if not os.path.exists(commits): |