Mercurial > hg > mercurial-source
comparison mercurial/tags.py @ 9312:c5f0825c1dbb
kill trailing whitespace
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Wed, 05 Aug 2009 17:08:28 +0200 |
parents | 4017291c4c48 |
children | 9ff178e7b627 |
comparison
equal
deleted
inserted
replaced
9311:e37e9904bf10 | 9312:c5f0825c1dbb |
---|---|
208 # head from the time the cache was written, and <tagnode> is the | 208 # head from the time the cache was written, and <tagnode> is the |
209 # filenode of .hgtags on that head. Heads with no .hgtags file will | 209 # filenode of .hgtags on that head. Heads with no .hgtags file will |
210 # have no <tagnode>. The cache is ordered from tip to oldest (which | 210 # have no <tagnode>. The cache is ordered from tip to oldest (which |
211 # is part of why <headrev> is there: a quick visual check is all | 211 # is part of why <headrev> is there: a quick visual check is all |
212 # that's required to ensure correct order). | 212 # that's required to ensure correct order). |
213 # | 213 # |
214 # This information is enough to let us avoid the most expensive part | 214 # This information is enough to let us avoid the most expensive part |
215 # of finding global tags, which is looking up <tagnode> in the | 215 # of finding global tags, which is looking up <tagnode> in the |
216 # manifest for each head. | 216 # manifest for each head. |
217 cacherevs = [] # list of headrev | 217 cacherevs = [] # list of headrev |
218 cacheheads = [] # list of headnode | 218 cacheheads = [] # list of headnode |
241 tags = _readtags(ui, repo, cachefile, cachefile.name) | 241 tags = _readtags(ui, repo, cachefile, cachefile.name) |
242 cachefile.close() | 242 cachefile.close() |
243 return (None, None, tags, False) | 243 return (None, None, tags, False) |
244 if cachefile: | 244 if cachefile: |
245 cachefile.close() # ignore rest of file | 245 cachefile.close() # ignore rest of file |
246 | 246 |
247 repoheads = repo.heads() | 247 repoheads = repo.heads() |
248 | |
249 # Case 2 (uncommon): empty repo; get out quickly and don't bother | 248 # Case 2 (uncommon): empty repo; get out quickly and don't bother |
250 # writing an empty cache. | 249 # writing an empty cache. |
251 if repoheads == [nullid]: | 250 if repoheads == [nullid]: |
252 return ([], {}, {}, False) | 251 return ([], {}, {}, False) |
253 | 252 |