# HG changeset patch # User Martin von Zweigbergk # Date 2018-07-27 21:48:34 # Node ID 59af0c7d103f50e29d099d4e0b0b3508435cfd79 # Parent af5c0c933af804a07c8eae9635be4089abfa67e4 patch: use ctx1.status(ctx2) instead of repo.status(ctx1, ctx2) Differential Revision: https://phab.mercurial-scm.org/D4000 diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -2326,7 +2326,7 @@ def diffhunks(repo, node1=None, node2=No relfiltered = True if not changes: - changes = repo.status(ctx1, ctx2, match=match) + changes = ctx1.status(ctx2, match=match) modified, added, removed = changes[:3] if not modified and not added and not removed: