Mercurial > public > mercurial-scm > hg
comparison mercurial/fileset.py @ 38772:af5c0c933af8
fileset: use ctx1.status(ctx2) instead of repo.status(ctx1, ctx2)
Differential Revision: https://phab.mercurial-scm.org/D3999
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 27 Jul 2018 14:48:06 -0700 |
parents | 774f92710a81 |
children | 4dc498d61d86 |
comparison
equal
deleted
inserted
replaced
38771:3bd22c4d3711 | 38772:af5c0c933af8 |
---|---|
645 | 645 |
646 if _intree(_statuscallers, tree): | 646 if _intree(_statuscallers, tree): |
647 unknown = _intree(['unknown'], tree) | 647 unknown = _intree(['unknown'], tree) |
648 ignored = _intree(['ignored'], tree) | 648 ignored = _intree(['ignored'], tree) |
649 | 649 |
650 r = ctx.repo() | |
651 if basectx is None: | 650 if basectx is None: |
652 basectx = ctx.p1() | 651 basectx = ctx.p1() |
653 return r.status(basectx, ctx, | 652 return basectx.status(ctx, listunknown=unknown, listignored=ignored, |
654 unknown=unknown, ignored=ignored, clean=True) | 653 listclean=True) |
655 else: | 654 else: |
656 return None | 655 return None |
657 | 656 |
658 def prettyformat(tree): | 657 def prettyformat(tree): |
659 return parser.prettyformat(tree, ('string', 'symbol')) | 658 return parser.prettyformat(tree, ('string', 'symbol')) |