# HG changeset patch # User Martin von Zweigbergk # Date 2014-12-24 00:25:00 # Node ID 377124ba6b1034792fdc8deecf5b1b6f16c1fea1 # Parent a9853fc172d2efa755bc7c7c8084dffa133fd73e trydiff: use 'not in addedset' for symmetry with 'not in removedset' With the previous change in place, we can safely use 'addedset'. 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()