localrepo: remove workingctx logic already moved to context
authorSean Farley <sean.michael.farley@gmail.com>
Mon, 21 Apr 2014 20:42:42 -0500
changeset 21470 1af854808a3c
parent 21469 65cdc6bab91e
child 21471 90aff492dc4a
localrepo: remove workingctx logic already moved to context
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Mon Apr 21 20:23:47 2014 -0500
+++ b/mercurial/localrepo.py	Mon Apr 21 20:42:42 2014 -0500
@@ -1558,19 +1558,7 @@
 
         if not parentworking:
             mf1 = ctx1._manifestmatches(match, r)
-            if working:
-                # we are comparing working dir against non-parent
-                # generate a pseudo-manifest for the working dir
-                mf2 = self['.']._manifestmatches(match, r)
-                for f in modified + added:
-                    mf2[f] = None
-                    mf2.set(f, ctx2.flags(f))
-                for f in removed:
-                    if f in mf2:
-                        del mf2[f]
-            else:
-                # we are comparing two revisions
-                mf2 = ctx2._manifestmatches(match, r)
+            mf2 = ctx2._manifestmatches(match, r)
 
             modified, added, clean = [], [], []
             deleted, unknown, ignored = r[3], [], []