Another tweak to bin/mergeready

- Legacy-Id: 17502
This commit is contained in:
Henrik Levkowetz 2020-03-22 12:37:44 +00:00
parent f7cf2f5090
commit 768a4dfa0a

View file

@ -328,7 +328,9 @@ for entry in ready:
else:
raise
#
merge_path = os.path.join(*path.split(os.path.sep)[:4])
dirs = path.split(os.path.sep)
dirs = dirs[:dirs.index('ietf')] if 'ietf' in dirs else dirs[:4]
merge_path = os.path.join(*dirs)
if not (rev, repo, merge_path) in hold:
output_line = "%s %-24s ^/%s@%s" % (when.strftime("%Y-%m-%d_%H:%MZ"), who+":", merge_path, rev)
all_commits[when] = (rev, repo, branch, who, merge_path)