Mercurial > public > mercurial-scm > hg
comparison mercurial/hg.py @ 8649:2c097e22492c
clone: fall back to pull source repo cannot be locked, 937ee88da3ef was a noop
937ee88da3ef was a noop, it was missing the wait keyword
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Thu, 28 May 2009 17:44:57 +0200 |
parents | 39cf453da958 |
children | 971e38a9344b |
comparison
equal
deleted
inserted
replaced
8648:ca443bac7ed4 | 8649:2c097e22492c |
---|---|
163 try: | 163 try: |
164 # we use a lock here because if we race with commit, we | 164 # we use a lock here because if we race with commit, we |
165 # can end up with extra data in the cloned revlogs that's | 165 # can end up with extra data in the cloned revlogs that's |
166 # not pointed to by changesets, thus causing verify to | 166 # not pointed to by changesets, thus causing verify to |
167 # fail | 167 # fail |
168 src_lock = src_repo.lock() | 168 src_lock = src_repo.lock(wait=False) |
169 except error.LockError: | 169 except error.LockError: |
170 copy = False | 170 copy = False |
171 | 171 |
172 if copy: | 172 if copy: |
173 hgdir = os.path.realpath(os.path.join(dest, ".hg")) | 173 hgdir = os.path.realpath(os.path.join(dest, ".hg")) |