equal
deleted
inserted
replaced
299 # cachefnode to get to each .hgtags revision quickly. |
299 # cachefnode to get to each .hgtags revision quickly. |
300 return (repoheads, cachefnode, None, True) |
300 return (repoheads, cachefnode, None, True) |
301 |
301 |
302 def _writetagcache(ui, repo, heads, tagfnode, cachetags): |
302 def _writetagcache(ui, repo, heads, tagfnode, cachetags): |
303 |
303 |
304 cachefile = repo.opener('tags.cache', 'w', atomictemp=True) |
304 try: |
|
305 cachefile = repo.opener('tags.cache', 'w', atomictemp=True) |
|
306 except (OSError, IOError): |
|
307 return |
305 _debug(ui, 'writing cache file %s\n' % cachefile.name) |
308 _debug(ui, 'writing cache file %s\n' % cachefile.name) |
306 |
309 |
307 realheads = repo.heads() # for sanity checks below |
310 realheads = repo.heads() # for sanity checks below |
308 for head in heads: |
311 for head in heads: |
309 # temporary sanity checks; these can probably be removed |
312 # temporary sanity checks; these can probably be removed |