diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -1807,7 +1807,7 @@ def trydiff(repo, revs, ctx1, ctx2, modi tn = None dodiff = True header = [] - if f in man1: + if f not in addedset: to = getfilectx(f, ctx1).data() if f not in removedset: tn = getfilectx(f, ctx2).data()