##// END OF EJS Templates
clone: use cancopy
Matt Mackall -
r6315:5c96a4bc default
parent child Browse files
Show More
@@ -261,6 +261,9 class bundlerepository(localrepo.localre
261 if self._tempparent:
261 if self._tempparent:
262 shutil.rmtree(self._tempparent, True)
262 shutil.rmtree(self._tempparent, True)
263
263
264 def cancopy(self):
265 return False
266
264 def instance(ui, path, create):
267 def instance(ui, path, create):
265 if create:
268 if create:
266 raise util.Abort(_('cannot create new bundle repository'))
269 raise util.Abort(_('cannot create new bundle repository'))
@@ -148,7 +148,7 def clone(ui, source, dest=None, pull=Fa
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
General Comments 0
You need to be logged in to leave comments. Login now