trydiff: remove unused variable 'modifiedset'
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 29 Jan 2015 21:12:35 -0800
changeset 23995 d8330fb8c44d
parent 23994 8a2156780839
child 23996 0188c2d90356
trydiff: remove unused variable 'modifiedset' We started updating 'modifiedset' in a9853fc172d2 (trydiff: simplify checking for additions, 2014-12-23) but in the same commit, we removed the last use of the variable. Clean it up.
mercurial/patch.py
--- a/mercurial/patch.py	Mon Feb 02 23:07:04 2015 +0900
+++ b/mercurial/patch.py	Thu Jan 29 21:12:35 2015 -0800
@@ -1788,13 +1788,12 @@
     if opts.git:
         revs = None
 
-    modifiedset, addedset, removedset = set(modified), set(added), set(removed)
-    # Fix up modified and added, since merged-in additions appear as
+    addedset, removedset = set(added), set(removed)
+    # Fix up  added, since merged-in additions appear as
     # modifications during merges
-    for f in modifiedset.copy():
+    for f in modified:
         if f not in ctx1:
             addedset.add(f)
-            modifiedset.remove(f)
     for f in sorted(modified + added + removed):
         to = None
         tn = None