Mercurial > public > mercurial-scm > hg-stable
diff mercurial/dispatch.py @ 7640:7197812e8d44
error: move lock errors
rename LockException to LockError
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 Jan 2009 11:09:14 -0600 |
parents | 1d54e2f6c0b7 |
children | d2f753830f80 |
line wrap: on
line diff
--- a/mercurial/dispatch.py Mon Jan 12 10:59:08 2009 -0600 +++ b/mercurial/dispatch.py Mon Jan 12 11:09:14 2009 -0600 @@ -63,13 +63,13 @@ commands.help_(ui, 'shortlist') except error.RepoError, inst: ui.warn(_("abort: %s!\n") % inst) - except lock.LockHeld, inst: + except error.LockHeld, inst: if inst.errno == errno.ETIMEDOUT: reason = _('timed out waiting for lock held by %s') % inst.locker else: reason = _('lock held by %s') % inst.locker ui.warn(_("abort: %s: %s\n") % (inst.desc or inst.filename, reason)) - except lock.LockUnavailable, inst: + except error.LockUnavailable, inst: ui.warn(_("abort: could not lock %s: %s\n") % (inst.desc or inst.filename, inst.strerror)) except error.RevlogError, inst: