Mercurial > hg-stable
diff mercurial/localrepo.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/localrepo.py Mon Jan 12 10:59:08 2009 -0600 +++ b/mercurial/localrepo.py Mon Jan 12 11:09:14 2009 -0600 @@ -637,7 +637,7 @@ def _lock(self, lockname, wait, releasefn, acquirefn, desc): try: l = lock.lock(lockname, 0, releasefn, desc=desc) - except lock.LockHeld, inst: + except error.LockHeld, inst: if not wait: raise self.ui.warn(_("waiting for lock on %s held by %r\n") % @@ -1023,7 +1023,7 @@ wlock = self.wlock(False) for f in fixup: self.dirstate.normal(f) - except lock.LockException: + except lock.LockError: pass finally: del wlock