diff --git a/mercurial/bundlerepo.py b/mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py +++ b/mercurial/bundlerepo.py @@ -261,6 +261,9 @@ class bundlerepository(localrepo.localre 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')) diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -148,7 +148,7 @@ def clone(ui, source, dest=None, pull=Fa 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