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