Mercurial > hg
diff tests/test-tags @ 9152:4017291c4c48
tags: support 'instant' tag retrieval (issue548)
- modify _readtagcache() and _writetagcache() to read/write tag->node
mapping for global tags
- if (and only if) tip unchanged, use that cached mapping to avoid
reading any revisions of .hgtags
- change so tag names are UTF-8 in memory in tags.py, and converted to
local encoding as late as possible (in localrepository._findtags())
author | Greg Ward <greg-hg@gerg.ca> |
---|---|
date | Thu, 16 Jul 2009 10:41:19 -0400 |
parents | f528d1a93491 |
children | 9ff178e7b627 |
line wrap: on
line diff
--- a/tests/test-tags Thu Jul 16 10:39:42 2009 -0400 +++ b/tests/test-tags Thu Jul 16 10:41:19 2009 -0400 @@ -4,6 +4,10 @@ [ -f .hg/tags.cache ] && echo "tag cache exists" || echo "no tag cache" } +# XXX need to test that the tag cache works when we strip an old head +# and add a new one rooted off non-tip: i.e. node and rev of tip are the +# same, but stuff has changed behind tip. + echo "% setup" mkdir t cd t