Mercurial > public > mercurial-scm > hg
comparison mercurial/hg.py @ 6315:5c96a4bca66b
clone: use cancopy
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 20 Mar 2008 11:12:35 -0500 |
parents | fe8dbbe9520d |
children | 0750f11152fe |
comparison
equal
deleted
inserted
replaced
6314:9a1c59283ad3 | 6315:5c96a4bca66b |
---|---|
146 if islocal(dest): | 146 if islocal(dest): |
147 dir_cleanup = DirCleanup(dest) | 147 dir_cleanup = DirCleanup(dest) |
148 | 148 |
149 abspath = origsource | 149 abspath = origsource |
150 copy = False | 150 copy = False |
151 if src_repo.local() and islocal(dest): | 151 if src_repo.cancopy() and islocal(dest): |
152 abspath = os.path.abspath(util.drop_scheme('file', origsource)) | 152 abspath = os.path.abspath(util.drop_scheme('file', origsource)) |
153 copy = not pull and not rev | 153 copy = not pull and not rev |
154 | 154 |
155 if copy: | 155 if copy: |
156 try: | 156 try: |