Show More
@@ -1290,8 +1290,15 b' class localrepository(object):' | |||
|
1290 | 1290 | except error.LockHeld as inst: |
|
1291 | 1291 | if not wait: |
|
1292 | 1292 | raise |
|
1293 | self.ui.warn(_("waiting for lock on %s held by %r\n") % | |
|
1294 |
|
|
|
1293 | # show more details for new-style locks | |
|
1294 | if ':' in inst.locker: | |
|
1295 | host, pid = inst.locker.split(":", 1) | |
|
1296 | self.ui.warn( | |
|
1297 | _("waiting for lock on %s held by process %r " | |
|
1298 | "on host %r\n") % (desc, pid, host)) | |
|
1299 | else: | |
|
1300 | self.ui.warn(_("waiting for lock on %s held by %r\n") % | |
|
1301 | (desc, inst.locker)) | |
|
1295 | 1302 | # default to 600 seconds timeout |
|
1296 | 1303 | l = lockmod.lock(vfs, lockname, |
|
1297 | 1304 | int(self.ui.config("ui", "timeout", "600")), |
@@ -60,7 +60,7 b' One process waiting for another' | |||
|
60 | 60 | > > preup 2>&1 |
|
61 | 61 | $ wait |
|
62 | 62 | $ cat preup |
|
63 |
waiting for lock on working directory of b held by '* |
|
|
63 | waiting for lock on working directory of b held by process '*' on host '*' (glob) | |
|
64 | 64 | got lock after * seconds (glob) |
|
65 | 65 | $ cat stdout |
|
66 | 66 | adding b |
General Comments 0
You need to be logged in to leave comments.
Login now