diff mercurial/localrepo.py @ 21480:d19f491e5d5b

workingctx: use inheritance for _buildstatus while keeping the fastpath This patch maintains the fast path for workingctx which is to not build a manifest if the working directory is being compared to its parent since, in this case, we can just copy the parent manifest.
author Sean Farley <sean.michael.farley@gmail.com>
date Thu, 24 Apr 2014 08:34:44 -0500
parents e18ef2e11219
children 6adfc311eee8
line wrap: on
line diff
--- a/mercurial/localrepo.py	Tue Apr 22 19:06:37 2014 -0500
+++ b/mercurial/localrepo.py	Thu Apr 24 08:34:44 2014 -0500
@@ -1551,11 +1551,8 @@
 
         r = [[], [], [], [], [], [], []]
         r = ctx2._prestatus(ctx1, r, match, listignored, listclean, listunknown)
-
-        if not parentworking:
-            r = ctx2._buildstatus(ctx1, r, match, listignored, listclean,
-                                  listunknown)
-
+        r = ctx2._buildstatus(ctx1, r, match, listignored, listclean,
+                              listunknown)
         r = ctx2._poststatus(ctx1, r, match, listignored, listclean,
                              listunknown)