comparison tests/test-commandserver.py @ 16115:236bb604dc39 stable

scmutil: update cached copy when filecached attribute is assigned (issue3263) When assigning a new object to filecached properties, the cached object that was kept in the _filecache map was still holding the old object. By implementing __set__, we track these changes too and update the cached copy as well.
author Idan Kamara <idankk86@gmail.com>
date Wed, 15 Feb 2012 20:02:35 +0200
parents acfca07a8f26
children ce0ad184f489
comparison
equal deleted inserted replaced
16114:acfca07a8f26 16115:236bb604dc39
179 179
180 # changes .hg/bookmarks.current 180 # changes .hg/bookmarks.current
181 os.system('hg upd bm1 -q') 181 os.system('hg upd bm1 -q')
182 runcommand(server, ['bookmarks']) 182 runcommand(server, ['bookmarks'])
183 183
184 runcommand(server, ['bookmarks', 'bm3'])
185 f = open('a', 'ab')
186 f.write('a\n')
187 f.close()
188 runcommand(server, ['commit', '-Amm'])
189 runcommand(server, ['bookmarks'])
190
184 def tagscache(server): 191 def tagscache(server):
185 readchannel(server) 192 readchannel(server)
186 runcommand(server, ['id', '-t', '-r', '0']) 193 runcommand(server, ['id', '-t', '-r', '0'])
187 os.system('hg tag -r 0 foo') 194 os.system('hg tag -r 0 foo')
188 runcommand(server, ['id', '-t', '-r', '0']) 195 runcommand(server, ['id', '-t', '-r', '0'])