diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -524,6 +524,7 @@ def diff(repo, node1=None, node2=None, f all = modified + added + removed all.sort() gone = {} + for f in all: to = None tn = None