Details
Details
- Reviewers
durin42 - Group Reviewers
hg-reviewers - Commits
- rHG575f59cdd8a1: lock: don't use 'file' as a variable name
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
durin42 |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
# symlink is used because create of directory entry and contents | # symlink is used because create of directory entry and contents | ||||
# are atomic even over nfs. | # are atomic even over nfs. | ||||
# old-style lock: symlink to pid | # old-style lock: symlink to pid | ||||
# new-style lock: symlink to hostname:pid | # new-style lock: symlink to hostname:pid | ||||
_host = None | _host = None | ||||
def __init__(self, vfs, file, timeout=-1, releasefn=None, acquirefn=None, | def __init__(self, vfs, fname, timeout=-1, releasefn=None, acquirefn=None, | ||||
desc=None, inheritchecker=None, parentlock=None, | desc=None, inheritchecker=None, parentlock=None, | ||||
dolock=True): | dolock=True): | ||||
self.vfs = vfs | self.vfs = vfs | ||||
self.f = file | self.f = fname | ||||
self.held = 0 | self.held = 0 | ||||
self.timeout = timeout | self.timeout = timeout | ||||
self.releasefn = releasefn | self.releasefn = releasefn | ||||
self.acquirefn = acquirefn | self.acquirefn = acquirefn | ||||
self.desc = desc | self.desc = desc | ||||
self._inheritchecker = inheritchecker | self._inheritchecker = inheritchecker | ||||
self.parentlock = parentlock | self.parentlock = parentlock | ||||
self._parentheld = False | self._parentheld = False |