Mercurial > hg
diff hgext/journal.py @ 33384:bc1f373cf3f6
journal: use wrapfilecache instead of wrapfunction on func of filecache
wrapfilecache() on filecache-ed property works more strictly than
wrapfunction() directly on func() of filecache.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Mon, 10 Jul 2017 23:09:51 +0900 |
parents | 774beab915fe |
children | 9bb4decd43b0 |
line wrap: on
line diff
--- a/hgext/journal.py Mon Jul 10 23:09:51 2017 +0900 +++ b/hgext/journal.py Mon Jul 10 23:09:51 2017 +0900 @@ -61,8 +61,8 @@ def extsetup(ui): extensions.wrapfunction(dispatch, 'runcommand', runcommand) extensions.wrapfunction(bookmarks.bmstore, '_write', recordbookmarks) - extensions.wrapfunction( - localrepo.localrepository.dirstate, 'func', wrapdirstate) + extensions.wrapfilecache( + localrepo.localrepository, 'dirstate', wrapdirstate) extensions.wrapfunction(hg, 'postshare', wrappostshare) extensions.wrapfunction(hg, 'copystore', unsharejournal)