Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 1754:fdfe89a3962d
use repo.lock when cloning via copy, use lock.LockException when necessary
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Mon, 20 Feb 2006 01:12:03 +0100 |
parents | d457fec76ab0 |
children | a8f7791e3680 |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Feb 20 01:09:40 2006 +0100 +++ b/mercurial/commands.py Mon Feb 20 01:12:03 2006 +0100 @@ -724,8 +724,8 @@ # can end up with extra data in the cloned revlogs that's # not pointed to by changesets, thus causing verify to # fail - l1 = lock.lock(os.path.join(source, ".hg", "lock")) - except OSError: + l1 = other.lock() + except lock.LockException: copy = False if copy: