Mercurial > public > mercurial-scm > hg
comparison mercurial/patch.py @ 38773:59af0c7d103f
patch: use ctx1.status(ctx2) instead of repo.status(ctx1, ctx2)
Differential Revision: https://phab.mercurial-scm.org/D4000
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 27 Jul 2018 14:48:34 -0700 |
parents | e1987261dd05 |
children | e7aa113b14f7 |
comparison
equal
deleted
inserted
replaced
38772:af5c0c933af8 | 38773:59af0c7d103f |
---|---|
2324 pats = [relroot] | 2324 pats = [relroot] |
2325 match = scmutil.match(ctx2, pats, default='path') | 2325 match = scmutil.match(ctx2, pats, default='path') |
2326 relfiltered = True | 2326 relfiltered = True |
2327 | 2327 |
2328 if not changes: | 2328 if not changes: |
2329 changes = repo.status(ctx1, ctx2, match=match) | 2329 changes = ctx1.status(ctx2, match=match) |
2330 modified, added, removed = changes[:3] | 2330 modified, added, removed = changes[:3] |
2331 | 2331 |
2332 if not modified and not added and not removed: | 2332 if not modified and not added and not removed: |
2333 return [] | 2333 return [] |
2334 | 2334 |