##// END OF EJS Templates
If local repository is missing, make error message clearer....
Thomas Arendsen Hein -
r3079:4c9fcb5e default
parent child Browse files
Show More
@@ -2458,7 +2458,8 b' def serve(ui, repo, **opts):'
2458 2458
2459 2459 if opts["stdio"]:
2460 2460 if repo is None:
2461 raise hg.RepoError(_('no repo found'))
2461 raise hg.RepoError(_("There is no Mercurial repository here"
2462 " (.hg not found)"))
2462 2463 s = sshserver.sshserver(ui, repo)
2463 2464 s.serve_forever()
2464 2465
@@ -2469,7 +2470,8 b' def serve(ui, repo, **opts):'
2469 2470 ui.setconfig("web", o, opts[o])
2470 2471
2471 2472 if repo is None and not ui.config("web", "webdir_conf"):
2472 raise hg.RepoError(_('no repo found'))
2473 raise hg.RepoError(_("There is no Mercurial repository here"
2474 " (.hg not found)"))
2473 2475
2474 2476 if opts['daemon'] and not opts['daemon_pipefds']:
2475 2477 rfd, wfd = os.pipe()
@@ -207,7 +207,8 b' def create_server(ui, repo):'
207 207 hgwebobj = self.repoviewmaker(repo.__class__(repo.ui,
208 208 repo.origroot))
209 209 else:
210 raise hg.RepoError(_('no repo found'))
210 raise hg.RepoError(_("There is no Mercurial repository here"
211 " (.hg not found)"))
211 212 return hgwebobj
212 213
213 214 class IPv6HTTPServer(MercurialHTTPServer):
@@ -27,7 +27,8 b' class localrepository(repo.repository):'
27 27 oldp = p
28 28 p = os.path.dirname(p)
29 29 if p == oldp:
30 raise repo.RepoError(_("no repo found"))
30 raise repo.RepoError(_("There is no Mercurial repository"
31 " here (.hg not found)"))
31 32 path = p
32 33 self.path = os.path.join(path, ".hg")
33 34
General Comments 0
You need to be logged in to leave comments. Login now