[PATCH 06 of 21] lowercase RepoError output

Martin Geisler mg at daimi.au.dk
Sat Jan 3 16:40:04 UTC 2009


# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1230999320 -3600
# Node ID ea3f7ac4437a0ae47053a05973f883d70ee40be4
# Parent  d71410db61667fa80397ef0214831aa6942d3993
lowercase RepoError output

The only use of RepoError is for the "There is no Mercurial repository
here" error message. Scripts grepping for this error message would be
better off looking for the -1 return code.

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2634,7 +2634,7 @@
 
     if opts["stdio"]:
         if repo is None:
-            raise RepoError(_("There is no Mercurial repository here"
+            raise RepoError(_("there is no Mercurial repository here"
                               " (.hg not found)"))
         s = sshserver.sshserver(ui, repo)
         s.serve_forever()
@@ -2649,7 +2649,7 @@
                 repo.ui.setconfig("web", o, str(opts[o]))
 
     if repo is None and not ui.config("web", "webdir_conf"):
-        raise RepoError(_("There is no Mercurial repository here"
+        raise RepoError(_("there is no Mercurial repository here"
                           " (.hg not found)"))
 
     class service:
diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -353,7 +353,7 @@
                     if guess and repos.count(guess) == len(repos):
                         return _dispatch(ui, ['--repository', guess] + fullargs)
                 if not path:
-                    raise RepoError(_("There is no Mercurial repository here"
+                    raise RepoError(_("there is no Mercurial repository here"
                                       " (.hg not found)"))
                 raise
         args.insert(0, repo)
diff --git a/tests/test-dispatch.out b/tests/test-dispatch.out
--- a/tests/test-dispatch.out
+++ b/tests/test-dispatch.out
@@ -30,4 +30,4 @@
 a
 a
 % no repo
-abort: There is no Mercurial repository here (.hg not found)!
+abort: there is no Mercurial repository here (.hg not found)!
diff --git a/tests/test-globalopts.out b/tests/test-globalopts.out
--- a/tests/test-globalopts.out
+++ b/tests/test-globalopts.out
@@ -28,9 +28,9 @@
 %% implicit -R
 0: a
 0: a
-abort: There is no Mercurial repository here (.hg not found)!
+abort: there is no Mercurial repository here (.hg not found)!
 abort: a/a not under root
-abort: There is no Mercurial repository here (.hg not found)!
+abort: there is no Mercurial repository here (.hg not found)!
 %% abbrev of long option
 changeset:   1:b6c483daf290
 tag:         tip
diff --git a/tests/test-ssh.out b/tests/test-ssh.out
--- a/tests/test-ssh.out
+++ b/tests/test-ssh.out
@@ -1,6 +1,6 @@
 # creating 'remote'
 # repo not found error
-remote: abort: There is no Mercurial repository here (.hg not found)!
+remote: abort: there is no Mercurial repository here (.hg not found)!
 abort: no suitable response from remote hg!
 # clone remote via stream
 streaming all changes



More information about the Mercurial-devel mailing list