tests/test-filecache.py
changeset 26098 ce26928cbe41
parent 20045 b3684fd2ff1a
child 28741 fc5f548393bf
equal deleted inserted replaced
26097:220ee13946d3 26098:ce26928cbe41
   128 
   128 
   129     util.cachestat.cacheable = origcacheable
   129     util.cachestat.cacheable = origcacheable
   130     util.cachestat.__init__ = originit
   130     util.cachestat.__init__ = originit
   131 
   131 
   132 def test_filecache_synced():
   132 def test_filecache_synced():
   133     # test old behaviour that caused filecached properties to go out of sync
   133     # test old behavior that caused filecached properties to go out of sync
   134     os.system('hg init && echo a >> a && hg ci -qAm.')
   134     os.system('hg init && echo a >> a && hg ci -qAm.')
   135     repo = hg.repository(ui.ui())
   135     repo = hg.repository(ui.ui())
   136     # first rollback clears the filecache, but changelog to stays in __dict__
   136     # first rollback clears the filecache, but changelog to stays in __dict__
   137     repo.rollback()
   137     repo.rollback()
   138     repo.commit('.')
   138     repo.commit('.')