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