Show More
@@ -289,7 +289,7 b' def clone(ui, peeropts, source, dest=Non' | |||||
289 | dircleanup = DirCleanup(dest) |
|
289 | dircleanup = DirCleanup(dest) | |
290 |
|
290 | |||
291 | copy = False |
|
291 | copy = False | |
292 | if srcrepo.cancopy() and islocal(dest): |
|
292 | if srcrepo.cancopy() and islocal(dest) and not srcrepo.revs("secret()"): | |
293 | copy = not pull and not rev |
|
293 | copy = not pull and not rev | |
294 |
|
294 | |||
295 | if copy: |
|
295 | if copy: |
@@ -637,10 +637,6 b' class localrepository(repo.repository):' | |||||
637 | def local(self): |
|
637 | def local(self): | |
638 | return self |
|
638 | return self | |
639 |
|
639 | |||
640 | def cancopy(self): |
|
|||
641 | return (repo.repository.cancopy(self) |
|
|||
642 | and not self._phaseroots[phases.secret]) |
|
|||
643 |
|
||||
644 | def join(self, f): |
|
640 | def join(self, f): | |
645 | return os.path.join(self.path, f) |
|
641 | return os.path.join(self.path, f) | |
646 |
|
642 |
General Comments 0
You need to be logged in to leave comments.
Login now