Mercurial > public > mercurial-scm > hg
comparison mercurial/hg.py @ 17194:32a6a33b9a35
peer: remove cancopy from peer api; use directly on repo instead
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Fri, 13 Jul 2012 21:52:37 +0200 |
parents | 1ac628cd7113 |
children | ecde35a1af9e |
comparison
equal
deleted
inserted
replaced
17193:1d710fe5ee0e | 17194:32a6a33b9a35 |
---|---|
300 | 300 |
301 if islocal(dest): | 301 if islocal(dest): |
302 dircleanup = DirCleanup(dest) | 302 dircleanup = DirCleanup(dest) |
303 | 303 |
304 copy = False | 304 copy = False |
305 if srcpeer.cancopy() and islocal(dest) and not srcrepo.revs("secret()"): | 305 if (srcrepo and srcrepo.cancopy() and islocal(dest) |
306 and not srcrepo.revs("secret()")): | |
306 copy = not pull and not rev | 307 copy = not pull and not rev |
307 | 308 |
308 if copy: | 309 if copy: |
309 try: | 310 try: |
310 # we use a lock here because if we race with commit, we | 311 # we use a lock here because if we race with commit, we |