Merge "Keep Gerrit ACL lines deduplicated"

This commit is contained in:
Jenkins 2016-02-18 23:12:03 +00:00 committed by Gerrit Code Review
commit a32acadfdc

View File

@ -140,8 +140,11 @@ if '7' in transformations:
for section in sorted(acl.keys()):
if acl[section]:
out += '\n[%s]\n' % section
lastoption = ''
for option in sorted(acl[section], key=tokens):
if option != lastoption:
out += '%s\n' % option
lastoption = option
if dry_run:
print(out[1:-1])