sqldirstate: do not recreate dirstate object on the file change

Summary:
In the dirstate world we don't maintain in-memory cache over dirstate - there
is no need to invalidate it then.

Test Plan: ran mercurial tests with sqldirstate

Reviewers: #mercurial, ttung, durham

Reviewed By: durham

Subscribers: mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3345268

Signature: t1:3345268:1464169114:e55b709c4acbc89c4e2239f7534c6e13ef9b4861
This commit is contained in:
Mateusz Kwapich 2016-05-25 14:12:09 -07:00
parent 2bc5373ec4
commit abffbab274

View File

@ -72,7 +72,7 @@ def uisetup(ui):
wrapfunction(localrepo.localrepository, '_journalfiles', wrapfunction(localrepo.localrepository, '_journalfiles',
wrapjournalfiles) wrapjournalfiles)
wrapfilecache(localrepo.localrepository, 'dirstate', wrapfilecache(localrepo.localrepository, 'dirstate',
wrapdirstate, DBFILE) wrapdirstate)
# debug commands # debug commands
cmdtable = {} cmdtable = {}