diff options
Diffstat (limited to 'osc_fast_export.py')
-rwxr-xr-x | osc_fast_export.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/osc_fast_export.py b/osc_fast_export.py index f07775a..2bfa4d6 100755 --- a/osc_fast_export.py +++ b/osc_fast_export.py @@ -10,7 +10,7 @@ from typing import List import xml.etree.ElementTree as ET -authorsfile = pathlib.PurePath(".git", "authorsfile.txt") +authorsfile = pathlib.Path(".git", "authorsfile.txt") # For reading section-less config files # https://stackoverflow.com/a/2819788/164233 @@ -69,6 +69,8 @@ def print_export(entry: LogEntry) -> int: print("commit refs/heads/master") print(f"mark :{mark}") + if entry.md5: + print(f"original-oid {entry.md5}") print(f"committer {author} {date} +0000") print(export_data(entry.msg)) if last_mark: @@ -77,6 +79,7 @@ def print_export(entry: LogEntry) -> int: print("deleteall") print("M 644 inline tralala") print(export_data("tralalala")) + print("") return mark |