Mercurial > public > mercurial-scm > hg
diff contrib/synthrepo.py @ 34023:ba479850c9c7
python3: replace sorted(<dict>.iterkeys()) with sorted(<dict>)
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 22 Aug 2017 20:06:58 -0400 |
parents | 46ba2cdda476 |
children | 2123e7629ec0 |
line wrap: on
line diff
--- a/contrib/synthrepo.py Tue Aug 22 20:03:07 2017 -0400 +++ b/contrib/synthrepo.py Tue Aug 22 20:06:58 2017 -0400 @@ -479,7 +479,7 @@ date = min(0x7fffffff, max(0, date)) user = random.choice(words) + '@' + random.choice(words) mc = context.memctx(repo, pl, makeline(minimum=2), - sorted(changes.iterkeys()), + sorted(changes), filectxfn, user, '%d %d' % (date, pick(tzoffset))) newnode = mc.commit() heads.add(repo.changelog.rev(newnode))