clone: use cancopy
authorMatt Mackall <mpm@selenic.com>
Thu, 20 Mar 2008 11:12:35 -0500
changeset 6315 5c96a4bca66b
parent 6314 9a1c59283ad3
child 6316 ad5baedeee02
clone: use cancopy
mercurial/bundlerepo.py
mercurial/hg.py
--- a/mercurial/bundlerepo.py	Sat Mar 15 12:04:28 2008 -0400
+++ b/mercurial/bundlerepo.py	Thu Mar 20 11:12:35 2008 -0500
@@ -261,6 +261,9 @@
         if self._tempparent:
             shutil.rmtree(self._tempparent, True)
 
+    def cancopy(self):
+        return False
+
 def instance(ui, path, create):
     if create:
         raise util.Abort(_('cannot create new bundle repository'))
--- a/mercurial/hg.py	Sat Mar 15 12:04:28 2008 -0400
+++ b/mercurial/hg.py	Thu Mar 20 11:12:35 2008 -0500
@@ -148,7 +148,7 @@
 
         abspath = origsource
         copy = False
-        if src_repo.local() and islocal(dest):
+        if src_repo.cancopy() and islocal(dest):
             abspath = os.path.abspath(util.drop_scheme('file', origsource))
             copy = not pull and not rev