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