Mercurial > hg
comparison tests/test-mq @ 9151:f528d1a93491
tags: implement persistent tag caching (issue548).
- rename findglobaltags() to findglobaltags1() (so the "no cache"
implementation is still there if we need it)
- add findglobaltags2() and make findglobaltags() an alias for it
(disabling tag caching is a one-line patch)
- factor out tagcache class with methods readcache() and writecache();
the expensive part of tag finding (iterate over heads and find
.hgtags filenode) is now in tagcache.readcache()
author | Greg Ward <greg-hg@gerg.ca> |
---|---|
date | Thu, 16 Jul 2009 10:39:42 -0400 |
parents | 6c82beaaa11a |
children | c7c2dd7524dd |
comparison
equal
deleted
inserted
replaced
9150:09a1ee498756 | 9151:f528d1a93491 |
---|---|
105 echo % qpop | 105 echo % qpop |
106 | 106 |
107 hg qpop | 107 hg qpop |
108 checkundo qpop | 108 checkundo qpop |
109 | 109 |
110 echo % qpush | 110 echo % qpush with dump of tag cache |
111 | 111 |
112 hg qpush | 112 # Dump the tag cache to ensure that it has exactly one head after qpush. |
113 rm -f .hg/tags.cache | |
114 hg tags > /dev/null | |
115 echo ".hg/tags.cache (pre qpush):" | |
116 sed 's/ [0-9a-f]*//' .hg/tags.cache | |
117 hg qpush | |
118 hg tags > /dev/null | |
119 echo ".hg/tags.cache (post qpush):" | |
120 sed 's/ [0-9a-f]*//' .hg/tags.cache | |
121 | |
113 checkundo qpush | 122 checkundo qpush |
114 | 123 |
115 cd .. | 124 cd .. |
116 | 125 |
117 echo % pop/push outside repo | 126 echo % pop/push outside repo |