Show More
@@ -200,10 +200,9 b' class lock(object):' | |||
|
200 | 200 | return |
|
201 | 201 | locker = self._testlock(locker) |
|
202 | 202 | if locker is not None: |
|
203 | raise error.LockHeld( | |
|
204 | errno.EAGAIN, | |
|
205 | encoding.strfromlocal(self.vfs.join(self.f)), | |
|
206 | self.desc, locker) | |
|
203 | raise error.LockHeld(errno.EAGAIN, | |
|
204 | self.vfs.join(self.f), self.desc, | |
|
205 | locker) | |
|
207 | 206 | else: |
|
208 | 207 | raise error.LockUnavailable(why.errno, why.strerror, |
|
209 | 208 | why.filename, self.desc) |
@@ -212,8 +211,7 b' class lock(object):' | |||
|
212 | 211 | # use empty locker to mean "busy for frequent lock/unlock |
|
213 | 212 | # by many processes" |
|
214 | 213 | raise error.LockHeld(errno.EAGAIN, |
|
215 |
|
|
|
216 | self.desc, "") | |
|
214 | self.vfs.join(self.f), self.desc, "") | |
|
217 | 215 | |
|
218 | 216 | def _readlock(self): |
|
219 | 217 | """read lock and return its value |
@@ -206,7 +206,7 b' class statichttprepository(localrepo.loc' | |||
|
206 | 206 | return statichttppeer(self) |
|
207 | 207 | |
|
208 | 208 | def wlock(self, wait=True): |
|
209 |
raise error.LockUnavailable(0, _('lock not available'), |
|
|
209 | raise error.LockUnavailable(0, _('lock not available'), 'lock', | |
|
210 | 210 | _('cannot lock static-http repository')) |
|
211 | 211 | |
|
212 | 212 | def lock(self, wait=True): |
General Comments 0
You need to be logged in to leave comments.
Login now