changeset 6315:5c96a4bca66b

clone: use cancopy
author Matt Mackall <mpm@selenic.com>
date Thu, 20 Mar 2008 11:12:35 -0500
parents 9a1c59283ad3
children ad5baedeee02
files mercurial/bundlerepo.py mercurial/hg.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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