changeset 38986 | ac0a87160012 |
parent 38872 | 576eef1ab43d |
child 39109 | a915db9a5e77 |
--- a/mercurial/localrepo.py Mon Aug 06 11:32:16 2018 -0700 +++ b/mercurial/localrepo.py Sat Aug 04 21:31:46 2018 -0400 @@ -495,6 +495,11 @@ ' dummy changelog to prevent using the old repo layout' ) else: + try: + self.vfs.stat() + except OSError as inst: + if inst.errno != errno.ENOENT: + raise raise error.RepoError(_("repository %s not found") % path) elif create: raise error.RepoError(_("repository %s already exists") % path)