localrepo: call _prestatus hook instead of hardcoding dirstate knowledge
authorSean Farley <sean.michael.farley@gmail.com>
Tue, 22 Apr 2014 12:43:20 -0500
changeset 21475 c6976a4a39db
parent 21474 6d7dcabb843f
child 21476 168283c8dedf
localrepo: call _prestatus hook instead of hardcoding dirstate knowledge
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Mon Apr 21 22:12:59 2014 -0500
+++ b/mercurial/localrepo.py	Tue Apr 22 12:43:20 2014 -0500
@@ -1550,9 +1550,7 @@
             match.bad = bad
 
         r = [[], [], [], [], [], [], []]
-        if working: # we need to scan the working dir
-            r = ctx2._dirstatestatus(match=match, ignored=listignored,
-                                     clean=listclean, unknown=listunknown)
+        r = ctx2._prestatus(ctx1, r, match, listignored, listclean, listunknown)
 
         if not parentworking:
             r = ctx2._buildstatus(ctx1, r, match, listignored, listclean,