comparison mercurial/commands.py @ 16935:f635c476fa3f

serve: lowercase "no repo here" message
author Martin Geisler <mg@aragost.com>
date Tue, 12 Jun 2012 14:18:18 +0200
parents 0c9c41e53f1a
children ee7dd2307031
comparison
equal deleted inserted replaced
16934:0c9c41e53f1a 16935:f635c476fa3f
5033 if opts["stdio"] and opts["cmdserver"]: 5033 if opts["stdio"] and opts["cmdserver"]:
5034 raise util.Abort(_("cannot use --stdio with --cmdserver")) 5034 raise util.Abort(_("cannot use --stdio with --cmdserver"))
5035 5035
5036 def checkrepo(): 5036 def checkrepo():
5037 if repo is None: 5037 if repo is None:
5038 raise error.RepoError(_("There is no Mercurial repository here" 5038 raise error.RepoError(_("there is no Mercurial repository here"
5039 " (.hg not found)")) 5039 " (.hg not found)"))
5040 5040
5041 if opts["stdio"]: 5041 if opts["stdio"]:
5042 checkrepo() 5042 checkrepo()
5043 s = sshserver.sshserver(ui, repo) 5043 s = sshserver.sshserver(ui, repo)
5064 repo.ui.setconfig("web", o, val) 5064 repo.ui.setconfig("web", o, val)
5065 5065
5066 o = opts.get('web_conf') or opts.get('webdir_conf') 5066 o = opts.get('web_conf') or opts.get('webdir_conf')
5067 if not o: 5067 if not o:
5068 if not repo: 5068 if not repo:
5069 raise error.RepoError(_("There is no Mercurial repository" 5069 raise error.RepoError(_("there is no Mercurial repository"
5070 " here (.hg not found)")) 5070 " here (.hg not found)"))
5071 o = repo.root 5071 o = repo.root
5072 5072
5073 app = hgweb.hgweb(o, baseui=ui) 5073 app = hgweb.hgweb(o, baseui=ui)
5074 5074