mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
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:
parent
2bc5373ec4
commit
abffbab274
@ -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 = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user