Mercurial > hg
comparison i18n/ro.po @ 12927:b6245c2470a9
util: refactor opener
- Don't call atomictempfile or nlinks() if the path is malformed
(no basename). Let posixfile() raise IOError directly.
- atomictempfile already breaks up hardlinks, no need to poke
at the file with nlinks() if atomictemp.
- No need to copy the file contents to break hardlinks for 'w'rite
modes (w, wb, w+, w+b). Unlinking and recreating the file is faster.
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Thu, 04 Nov 2010 09:04:37 +0100 |
parents | 4403ba5f9009 |
children | 4d36013ab330 |
comparison
equal
deleted
inserted
replaced
12926:edbe32efc89f | 12927:b6245c2470a9 |
---|