Mercurial > public > mercurial-scm > hg-stable
diff contrib/synthrepo.py @ 41419:0bd56c291359
cleanup: use p1() and p2() instead of parents()[0] and parents()[1]
We have had these methods on both contexts and dirstate for a long
time now.
Differential Revision: https://phab.mercurial-scm.org/D5706
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 25 Jan 2019 23:36:23 -0800 |
parents | 876494fd967d |
children | 2ff8994ac71d |
line wrap: on
line diff
--- a/contrib/synthrepo.py Mon Jan 21 15:29:14 2019 +0000 +++ b/contrib/synthrepo.py Fri Jan 25 23:36:23 2019 -0800 @@ -349,7 +349,7 @@ # to the modeled directory structure. initcount = int(opts['initfiles']) if initcount and initdirs: - pctx = repo[None].parents()[0] + pctx = repo[None].p1() dirs = set(pctx.dirs()) files = {}