Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.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 | e06719b7544d |
children | 2372284d9457 |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Mon Jan 21 15:29:14 2019 +0000 +++ b/mercurial/hgweb/webcommands.py Fri Jan 25 23:36:23 2019 -0800 @@ -884,7 +884,7 @@ leftlines = filelines(pfctx) else: rightlines = () - pfctx = ctx.parents()[0][path] + pfctx = ctx.p1()[path] leftlines = filelines(pfctx) comparison = webutil.compare(context, leftlines, rightlines)