localrepo: remove cache code now handled by _prestatus
authorSean Farley <sean.michael.farley@gmail.com>
Wed, 23 Apr 2014 16:08:20 -0500
changeset 21591 660ef8ca8c3c
parent 21590 e5deefcaa12b
child 21592 16f62b4203b1
localrepo: remove cache code now handled by _prestatus This patch removes the last of the 'working' variable that was sprinkled throughout localrepo.status which paves the way for future patches to use the object oriented design of contexts to handle calculating the status.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Wed Apr 23 16:06:42 2014 -0500
+++ b/mercurial/localrepo.py	Wed Apr 23 16:08:20 2014 -0500
@@ -1532,13 +1532,8 @@
             reversed = True
             ctx1, ctx2 = ctx2, ctx1
 
-        working = ctx2.rev() is None
         listignored, listclean, listunknown = ignored, clean, unknown
 
-        # load earliest manifest first for caching reasons
-        if not working and ctx2.rev() < ctx1.rev():
-            ctx2.manifest()
-
         r = [[], [], [], [], [], [], []]
         match = ctx2._matchstatus(ctx1, r, match, listignored, listclean,
                                   listunknown)