tests/test-filecache.py
changeset 30559 d83ca854fa21
parent 30332 318a24b52eeb
child 31216 21fa3d3688f3
equal deleted inserted replaced
30557:cbeb54ec0481 30559:d83ca854fa21
   139     util.cachestat.__init__ = originit
   139     util.cachestat.__init__ = originit
   140 
   140 
   141 def test_filecache_synced():
   141 def test_filecache_synced():
   142     # test old behavior that caused filecached properties to go out of sync
   142     # test old behavior that caused filecached properties to go out of sync
   143     os.system('hg init && echo a >> a && hg ci -qAm.')
   143     os.system('hg init && echo a >> a && hg ci -qAm.')
   144     repo = hg.repository(uimod.ui())
   144     repo = hg.repository(uimod.ui.load())
   145     # first rollback clears the filecache, but changelog to stays in __dict__
   145     # first rollback clears the filecache, but changelog to stays in __dict__
   146     repo.rollback()
   146     repo.rollback()
   147     repo.commit('.')
   147     repo.commit('.')
   148     # second rollback comes along and touches the changelog externally
   148     # second rollback comes along and touches the changelog externally
   149     # (file is moved)
   149     # (file is moved)