# HG changeset patch # User Sean Farley # Date 1394577849 18000 # Node ID 20a30cd41d212fcb9eee0941d34b1987fdd5747c # Parent a45af4da0421f83c8ae7ea40b9d7be1d348d7186 localrepo: improve dirstate.normal lookup by cacheing the function diff -r a45af4da0421 -r 20a30cd41d21 mercurial/localrepo.py --- a/mercurial/localrepo.py Fri Mar 07 13:32:37 2014 -0800 +++ b/mercurial/localrepo.py Tue Mar 11 17:44:09 2014 -0500 @@ -1567,10 +1567,11 @@ try: # updating the dirstate is optional # so we don't wait on the lock + normal = self.dirstate.normal wlock = self.wlock(False) try: for f in fixup: - self.dirstate.normal(f) + normal(f) finally: wlock.release() except error.LockError: