Mercurial > hg-stable
changeset 13305:035684c6b69a stable
opener: force copy on 'a'ppend if nlinks() returns 0 (issue1922)
If pywin32 is not installed, 'os.lstat(pathname).st_nlink' is used for
nlinks(), which is always zero for all files on Windows.
To make sure we break up hardlinks if pywin32 is missing, we force
nlink = 2 if nlinks() returns < 1.
(this completely fixes issue1922)
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Wed, 26 Jan 2011 19:14:30 +0100 |
parents | d0e0d3d43e14 |
children | 146bad852ede |
files | mercurial/util.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff