equal
deleted
inserted
replaced
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) |