# HG changeset patch # User Sean Farley # Date 1398188600 18000 # Node ID c6976a4a39db2a6f9b89208680da662566471dc1 # Parent 6d7dcabb843fbe7fc03b3f17ba2eb32c1f0cd2f6 localrepo: call _prestatus hook instead of hardcoding dirstate knowledge diff -r 6d7dcabb843f -r c6976a4a39db 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,