equal
deleted
inserted
replaced
169 raise |
169 raise |
170 # Global exception handling, alphabetically |
170 # Global exception handling, alphabetically |
171 # Mercurial-specific first, followed by built-in and library exceptions |
171 # Mercurial-specific first, followed by built-in and library exceptions |
172 except error.LockHeld as inst: |
172 except error.LockHeld as inst: |
173 if inst.errno == errno.ETIMEDOUT: |
173 if inst.errno == errno.ETIMEDOUT: |
174 reason = _('timed out waiting for lock held by %r') % inst.locker |
174 reason = _('timed out waiting for lock held by %r') % ( |
|
175 pycompat.bytestr(inst.locker)) |
175 else: |
176 else: |
176 reason = _('lock held by %r') % inst.locker |
177 reason = _('lock held by %r') % inst.locker |
177 ui.error(_("abort: %s: %s\n") % ( |
178 ui.error(_("abort: %s: %s\n") % ( |
178 inst.desc or stringutil.forcebytestr(inst.filename), reason)) |
179 inst.desc or stringutil.forcebytestr(inst.filename), reason)) |
179 if not inst.locker: |
180 if not inst.locker: |