Mercurial > hg
comparison hgext/largefiles/lfutil.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 | a65ad9b22a00 |
children | 0531dff73d0b |
comparison
equal
deleted
inserted
replaced
41396:3461814417f3 | 41397:0bd56c291359 |
---|---|
516 repo.lfstatus = oldlfstatus | 516 repo.lfstatus = oldlfstatus |
517 | 517 |
518 files = set(ctx.files()) | 518 files = set(ctx.files()) |
519 if len(parents) == 2: | 519 if len(parents) == 2: |
520 mc = ctx.manifest() | 520 mc = ctx.manifest() |
521 mp1 = ctx.parents()[0].manifest() | 521 mp1 = ctx.p1().manifest() |
522 mp2 = ctx.parents()[1].manifest() | 522 mp2 = ctx.p2().manifest() |
523 for f in mp1: | 523 for f in mp1: |
524 if f not in mc: | 524 if f not in mc: |
525 files.add(f) | 525 files.add(f) |
526 for f in mp2: | 526 for f in mp2: |
527 if f not in mc: | 527 if f not in mc: |