Show More
@@ -546,8 +546,7 b' class localrepository(repo.repository):' | |||||
546 | self.tagscache = None |
|
546 | self.tagscache = None | |
547 | self.nodetagscache = None |
|
547 | self.nodetagscache = None | |
548 |
|
548 | |||
549 |
def |
|
549 | def _lock(self, lockname, wait, releasefn, acquirefn, desc): | |
550 | desc=None): |
|
|||
551 | try: |
|
550 | try: | |
552 | l = lock.lock(lockname, 0, releasefn, desc=desc) |
|
551 | l = lock.lock(lockname, 0, releasefn, desc=desc) | |
553 | except lock.LockHeld, inst: |
|
552 | except lock.LockHeld, inst: | |
@@ -563,14 +562,13 b' class localrepository(repo.repository):' | |||||
563 | return l |
|
562 | return l | |
564 |
|
563 | |||
565 | def lock(self, wait=1): |
|
564 | def lock(self, wait=1): | |
566 |
return self. |
|
565 | return self._lock(self.sjoin("lock"), wait, None, self.invalidate, | |
567 |
|
|
566 | _('repository %s') % self.origroot) | |
568 | desc=_('repository %s') % self.origroot) |
|
|||
569 |
|
567 | |||
570 | def wlock(self, wait=1): |
|
568 | def wlock(self, wait=1): | |
571 |
return self. |
|
569 | return self._lock(self.join("wlock"), wait, self.dirstate.write, | |
572 |
|
|
570 | self.dirstate.invalidate, | |
573 |
|
|
571 | _('working directory of %s') % self.origroot) | |
574 |
|
572 | |||
575 | def filecommit(self, fn, manifest1, manifest2, linkrev, transaction, changelist): |
|
573 | def filecommit(self, fn, manifest1, manifest2, linkrev, transaction, changelist): | |
576 | """ |
|
574 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now