mercurial/tags.py
changeset 9366 9ff178e7b627
parent 9312 c5f0825c1dbb
child 9678 e2b1de5fee04
equal deleted inserted replaced
9365:b8dc3eba4f9d 9366:9ff178e7b627
   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