Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/tests/test-commandserver.py Wed Feb 15 23:44:10 2012 +0200 +++ b/tests/test-commandserver.py Wed Feb 15 20:02:35 2012 +0200 @@ -181,6 +181,13 @@ os.system('hg upd bm1 -q') runcommand(server, ['bookmarks']) + runcommand(server, ['bookmarks', 'bm3']) + f = open('a', 'ab') + f.write('a\n') + f.close() + runcommand(server, ['commit', '-Amm']) + runcommand(server, ['bookmarks']) + def tagscache(server): readchannel(server) runcommand(server, ['id', '-t', '-r', '0'])