changeset 7598:26adfaccdf73

lowercase help output Changes docstrings to begin with a lowercase word. Only docstrings used in help output is changed. Scripts are not expected to grep the output of 'hg help' so this change should pose no problem with regard to the compatibility rules.
author Martin Geisler <mg@daimi.au.dk>
date Sat, 03 Jan 2009 17:15:15 +0100
parents 81f68565281c
children 7bf7c073375e
files hgext/churn.py hgext/convert/__init__.py hgext/fetch.py hgext/hgk.py hgext/mq.py hgext/win32mbcs.py mercurial/commands.py tests/test-convert.out tests/test-mq.out
diffstat 9 files changed, 25 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/churn.py	Sat Jan 03 16:15:11 2009 +0100
+++ b/hgext/churn.py	Sat Jan 03 17:15:15 2009 +0100
@@ -90,7 +90,7 @@
 
 
 def churn(ui, repo, *pats, **opts):
-    '''Graph count of revisions grouped by template
+    '''graph count of revisions grouped by template
 
     Will graph count of changed lines or revisions grouped by template or
     alternatively by date, if dateformat is used. In this case it will override
--- a/hgext/convert/__init__.py	Sat Jan 03 16:15:11 2009 +0100
+++ b/hgext/convert/__init__.py	Sat Jan 03 17:15:15 2009 +0100
@@ -14,7 +14,7 @@
 # Commands definition was moved elsewhere to ease demandload job.
 
 def convert(ui, src, dest=None, revmapfile=None, **opts):
-    """Convert a foreign SCM repository to a Mercurial one.
+    """convert a foreign SCM repository to a Mercurial one.
 
     Accepted source formats [identifiers]:
     - Mercurial [hg]
@@ -185,7 +185,7 @@
     return convcmd.debugsvnlog(ui, **opts)
 
 def debugcvsps(ui, *args, **opts):
-    '''Create changeset information from CVS
+    '''create changeset information from CVS
 
     This command is intended as a debugging tool for the CVS to Mercurial
     converter, and can be used as a direct replacement for cvsps.
@@ -216,18 +216,18 @@
         (debugcvsps,
          [
           # Main options shared with cvsps-2.1
-          ('b', 'branches', [], _('Only return changes on specified branches')),
-          ('p', 'prefix', '', _('Prefix to remove from file names')),
-          ('r', 'revisions', [], _('Only return changes after or between specified tags')),
-          ('u', 'update-cache', None, _("Update cvs log cache")),
-          ('x', 'new-cache', None, _("Create new cvs log cache")),
-          ('z', 'fuzz', 60, _('Set commit time fuzz in seconds')),
-          ('', 'root', '', _('Specify cvsroot')),
+          ('b', 'branches', [], _('only return changes on specified branches')),
+          ('p', 'prefix', '', _('prefix to remove from file names')),
+          ('r', 'revisions', [], _('only return changes after or between specified tags')),
+          ('u', 'update-cache', None, _("update cvs log cache")),
+          ('x', 'new-cache', None, _("create new cvs log cache")),
+          ('z', 'fuzz', 60, _('set commit time fuzz in seconds')),
+          ('', 'root', '', _('specify cvsroot')),
           # Options specific to builtin cvsps
-          ('', 'parents', '', _('Show parent changesets')),
-          ('', 'ancestors', '', _('Show current changeset in ancestor branches')),
+          ('', 'parents', '', _('show parent changesets')),
+          ('', 'ancestors', '', _('show current changeset in ancestor branches')),
           # Options that are ignored for compatibility with cvsps-2.1
-          ('A', 'cvs-direct', None, 'Ignored for compatibility'),
+          ('A', 'cvs-direct', None, 'ignored for compatibility'),
          ],
          'hg debugcvsps [OPTION]... [PATH]...'),
 }
--- a/hgext/fetch.py	Sat Jan 03 16:15:11 2009 +0100
+++ b/hgext/fetch.py	Sat Jan 03 17:15:15 2009 +0100
@@ -11,7 +11,7 @@
 from mercurial import commands, cmdutil, hg, util, url
 
 def fetch(ui, repo, source='default', **opts):
-    '''Pull changes from a remote repository, merge new changes if needed.
+    '''pull changes from a remote repository, merge new changes if needed.
 
     This finds all changes from the repository at the specified path
     or URL and adds them to the local repository.
--- a/hgext/hgk.py	Sat Jan 03 16:15:11 2009 +0100
+++ b/hgext/hgk.py	Sat Jan 03 17:15:15 2009 +0100
@@ -130,7 +130,7 @@
         ui.write('\0')
 
 def base(ui, repo, node1, node2):
-    """Output common ancestor information"""
+    """output common ancestor information"""
     node1 = repo.lookup(node1)
     node2 = repo.lookup(node2)
     n = repo.changelog.ancestor(node1, node2)
@@ -282,7 +282,7 @@
             count += 1
 
 def revparse(ui, repo, *revs, **opts):
-    """Parse given revisions"""
+    """parse given revisions"""
     def revstr(rev):
         if rev == 'HEAD':
             rev = 'tip'
--- a/hgext/mq.py	Sat Jan 03 16:15:11 2009 +0100
+++ b/hgext/mq.py	Sat Jan 03 17:15:15 2009 +0100
@@ -2015,7 +2015,7 @@
         status(q.series.index(q.lookup(patch)))
 
 def header(ui, repo, patch=None):
-    """Print the header of the topmost or specified patch"""
+    """print the header of the topmost or specified patch"""
     q = repo.mq
 
     if patch:
--- a/hgext/win32mbcs.py	Sat Jan 03 16:15:11 2009 +0100
+++ b/hgext/win32mbcs.py	Sat Jan 03 17:15:15 2009 +0100
@@ -8,7 +8,7 @@
 # This software may be used and distributed according to the terms
 # of the GNU General Public License, incorporated herein by reference.
 #
-"""Allow to use MBCS path with problematic encoding.
+"""allow to use MBCS path with problematic encoding.
 
 Some MBCS encodings are not good for some path operations
 (i.e. splitting path, case conversion, etc.) with its encoded bytes.
--- a/mercurial/commands.py	Sat Jan 03 16:15:11 2009 +0100
+++ b/mercurial/commands.py	Sat Jan 03 17:15:15 2009 +0100
@@ -1333,7 +1333,7 @@
         # description
         doc = gettext(i[0].__doc__)
         if not doc:
-            doc = _("(No help text available)")
+            doc = _("(no help text available)")
         if ui.quiet:
             doc = doc.splitlines(0)[0]
         ui.write("\n%s\n" % doc.rstrip())
@@ -1362,7 +1362,7 @@
                 continue
             doc = gettext(e[0].__doc__)
             if not doc:
-                doc = _("(No help text available)")
+                doc = _("(no help text available)")
             h[f] = doc.splitlines(0)[0].rstrip()
             cmds[f] = c.lstrip("^")
 
@@ -1405,7 +1405,7 @@
 
         # description
         if not doc:
-            doc = _("(No help text available)")
+            doc = _("(no help text available)")
         if callable(doc):
             doc = doc()
 
@@ -1418,7 +1418,7 @@
         except KeyError:
             raise cmdutil.UnknownCommand(name)
 
-        doc = gettext(mod.__doc__) or _('No help text available')
+        doc = gettext(mod.__doc__) or _('no help text available')
         doc = doc.splitlines(0)
         ui.write(_('%s extension - %s\n') % (name.split('.')[-1], doc[0]))
         for d in doc[1:]:
@@ -3077,7 +3077,7 @@
           ('g', 'good', False, _('mark changeset good')),
           ('b', 'bad', False, _('mark changeset bad')),
           ('s', 'skip', False, _('skip testing changeset')),
-          ('c', 'command', '', _('Use command to check changeset state')),
+          ('c', 'command', '', _('use command to check changeset state')),
           ('U', 'noupdate', False, _('do not update to target'))],
          _("[-gbsr] [-c CMD] [REV]")),
     "branch":
--- a/tests/test-convert.out	Sat Jan 03 16:15:11 2009 +0100
+++ b/tests/test-convert.out	Sat Jan 03 17:15:15 2009 +0100
@@ -1,6 +1,6 @@
 hg convert [OPTION]... SOURCE [DEST [REVMAP]]
 
-Convert a foreign SCM repository to a Mercurial one.
+convert a foreign SCM repository to a Mercurial one.
 
     Accepted source formats [identifiers]:
     - Mercurial [hg]
--- a/tests/test-mq.out	Sat Jan 03 16:15:11 2009 +0100
+++ b/tests/test-mq.out	Sat Jan 03 17:15:15 2009 +0100
@@ -33,7 +33,7 @@
  qfold        fold the named patches into the current patch
  qgoto        push or pop patches until named patch is at top of stack
  qguard       set or print guards for a patch
- qheader      Print the header of the topmost or specified patch
+ qheader      print the header of the topmost or specified patch
  qimport      import a patch
  qinit        init a new queue repository
  qnew         create a new patch