equal
deleted
inserted
replaced
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. |