comparison mercurial/win32.py @ 12401:4cdaf1adafc8

backout most of 4f8067c94729
author Matt Mackall <mpm@selenic.com>
date Fri, 24 Sep 2010 12:46:54 -0500
parents 4f8067c94729
children c52c629ce19e
comparison
equal deleted inserted replaced
12400:40852b4b910c 12401:4cdaf1adafc8
48 # Known to be wrong for most network drives 48 # Known to be wrong for most network drives
49 dirname = os.path.dirname(pathname) 49 dirname = os.path.dirname(pathname)
50 if not dirname: 50 if not dirname:
51 dirname = '.' 51 dirname = '.'
52 dt = win32file.GetDriveType(dirname + '\\') 52 dt = win32file.GetDriveType(dirname + '\\')
53 if dt in (4, 1): 53 if dt == 4 or dt == 1:
54 # Fake hardlink to force COW for network drives 54 # Fake hardlink to force COW for network drives
55 links = 2 55 links = 2
56 return links 56 return links
57 57
58 def samefile(fpath1, fpath2): 58 def samefile(fpath1, fpath2):