diff options
author | 2014-10-19 09:05:03 -0400 | |
---|---|---|
committer | 2014-10-19 09:05:03 -0400 | |
commit | ffb96024d6b464c2dd39b121e8492acdc7b1b06e (patch) | |
tree | b878b1644ef666d616c5e6632ad4ef4f95e6134c /rewrite-git-blob.py | |
parent | Process profiles first. (diff) | |
download | git-conversion-tools-ffb96024d6b464c2dd39b121e8492acdc7b1b06e.tar.gz git-conversion-tools-ffb96024d6b464c2dd39b121e8492acdc7b1b06e.tar.bz2 git-conversion-tools-ffb96024d6b464c2dd39b121e8492acdc7b1b06e.zip |
Diffstat (limited to 'rewrite-git-blob.py')
-rwxr-xr-x | rewrite-git-blob.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rewrite-git-blob.py b/rewrite-git-blob.py index 9693bc8..18343b9 100755 --- a/rewrite-git-blob.py +++ b/rewrite-git-blob.py @@ -48,6 +48,7 @@ def process_stream(source, output_dir, output): header = os.path.normpath(os.path.abspath(output_dir)) header = "$Header: %s" % output_dir sourcekeyword = "$Source: %s" % output_dir + atticsearch = re.compile(r': /var/cvsroot/.*/Attic/') line = source.readline() while line: chunks = line.split() @@ -59,6 +60,8 @@ def process_stream(source, output_dir, output): data = data.replace(header, "$Header: /var/cvsroot") data = data.replace(sourcekeyword, "$Source: /var/cvsroot") data = data.replace("$Name: not supported by cvs2svn $", "$Name: $") + if atticsearch.search(data): + data = data.replace("Attic/", "") line = 'data %i\n%s' % (len(data), data) output.write(line) line = source.readline() |