# HG changeset patch # User Martin von Zweigbergk # Date 1532728114 25200 # 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 -r af5c0c933af8 -r 59af0c7d103f mercurial/patch.py --- a/mercurial/patch.py Fri Jul 27 14:48:06 2018 -0700 +++ b/mercurial/patch.py Fri Jul 27 14:48:34 2018 -0700 @@ -2326,7 +2326,7 @@ 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: