Show More
@@ -373,6 +373,7 b' test-subrepo-deep-nested-change.t' | |||||
373 | test-subrepo.t |
|
373 | test-subrepo.t | |
374 | test-symlinks.t |
|
374 | test-symlinks.t | |
375 | test-tag.t |
|
375 | test-tag.t | |
|
376 | test-tags.t | |||
376 | test-treemanifest.t |
|
377 | test-treemanifest.t | |
377 | test-unamend.t |
|
378 | test-unamend.t | |
378 | test-uncommit.t |
|
379 | test-uncommit.t |
@@ -1685,7 +1685,8 b' def makelock(info, pathname):' | |||||
1685 | except AttributeError: # no symlink in os |
|
1685 | except AttributeError: # no symlink in os | |
1686 | pass |
|
1686 | pass | |
1687 |
|
1687 | |||
1688 |
|
|
1688 | flags = os.O_CREAT | os.O_WRONLY | os.O_EXCL | getattr(os, 'O_BINARY', 0) | |
|
1689 | ld = os.open(pathname, flags) | |||
1689 | os.write(ld, info) |
|
1690 | os.write(ld, info) | |
1690 | os.close(ld) |
|
1691 | os.close(ld) | |
1691 |
|
1692 | |||
@@ -1697,7 +1698,7 b' def readlock(pathname):' | |||||
1697 | raise |
|
1698 | raise | |
1698 | except AttributeError: # no symlink in os |
|
1699 | except AttributeError: # no symlink in os | |
1699 | pass |
|
1700 | pass | |
1700 | fp = posixfile(pathname) |
|
1701 | fp = posixfile(pathname, 'rb') | |
1701 | r = fp.read() |
|
1702 | r = fp.read() | |
1702 | fp.close() |
|
1703 | fp.close() | |
1703 | return r |
|
1704 | return r |
General Comments 0
You need to be logged in to leave comments.
Login now