Show More
@@ -495,6 +495,11 b' class localrepository(object):' | |||
|
495 | 495 | ' dummy changelog to prevent using the old repo layout' |
|
496 | 496 | ) |
|
497 | 497 | else: |
|
498 | try: | |
|
499 | self.vfs.stat() | |
|
500 | except OSError as inst: | |
|
501 | if inst.errno != errno.ENOENT: | |
|
502 | raise | |
|
498 | 503 | raise error.RepoError(_("repository %s not found") % path) |
|
499 | 504 | elif create: |
|
500 | 505 | raise error.RepoError(_("repository %s already exists") % path) |
@@ -642,7 +642,7 b' Inaccessible source' | |||
|
642 | 642 | $ mkdir a |
|
643 | 643 | $ chmod 000 a |
|
644 | 644 | $ hg clone a b |
|
645 | abort: repository a not found! | |
|
645 | abort: Permission denied: '$TESTTMP/fail/a/.hg' | |
|
646 | 646 | [255] |
|
647 | 647 | |
|
648 | 648 | Inaccessible destination |
@@ -665,7 +665,7 b' Source of wrong type' | |||
|
665 | 665 | |
|
666 | 666 | $ mkfifo a |
|
667 | 667 | $ hg clone a b |
|
668 | abort: repository a not found! | |
|
668 | abort: $ENOTDIR$: '$TESTTMP/fail/a/.hg' | |
|
669 | 669 | [255] |
|
670 | 670 | $ rm a |
|
671 | 671 |
General Comments 0
You need to be logged in to leave comments.
Login now