mercurial/util.py
branchstable
changeset 13038 670f4e98276d
parent 12938 bf826c0b9537
child 13039 dd24f3e7ca9e
equal deleted inserted replaced
13035:f08df4d38442 13038:670f4e98276d
   720     '''check whether hardlink count reporting works properly'''
   720     '''check whether hardlink count reporting works properly'''
   721     f = testfile + ".hgtmp"
   721     f = testfile + ".hgtmp"
   722 
   722 
   723     try:
   723     try:
   724         os_link(testfile, f)
   724         os_link(testfile, f)
   725     except OSError, inst:
   725     except OSError:
   726         if inst.errno == errno.EINVAL:
       
   727             # FS doesn't support creating hardlinks
       
   728             return True
       
   729         return False
   726         return False
   730 
   727 
   731     try:
   728     try:
   732         # nlinks() may behave differently for files on Windows shares if
   729         # nlinks() may behave differently for files on Windows shares if
   733         # the file is open.
   730         # the file is open.