Mercurial > public > mercurial-scm > hg
diff hgext/largefiles/lfcommands.py @ 41397: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 | 98681293c890 |
children | 4a409c19831f |
line wrap: on
line diff
--- a/hgext/largefiles/lfcommands.py Mon Jan 21 15:29:14 2019 +0000 +++ b/hgext/largefiles/lfcommands.py Fri Jan 25 23:36:23 2019 -0800 @@ -288,8 +288,8 @@ files = set(ctx.files()) if node.nullid not in parents: mc = ctx.manifest() - mp1 = ctx.parents()[0].manifest() - mp2 = ctx.parents()[1].manifest() + mp1 = ctx.p1().manifest() + mp2 = ctx.p2().manifest() files |= (set(mp1) | set(mp2)) - set(mc) for f in mc: if mc[f] != mp1.get(f, None) or mc[f] != mp2.get(f, None):