improve some comments and docstrings, fixing issues found when spell checking
authorMads Kiilerich <mads@kiilerich.com>
Tue, 21 Aug 2012 02:41:20 +0200
changeset 17427 57c6c24b9bc4
parent 17426 9724f8f8850b
child 17428 72803c8edaa4
improve some comments and docstrings, fixing issues found when spell checking
mercurial/context.py
mercurial/hgweb/server.py
mercurial/localrepo.py
mercurial/lock.py
--- a/mercurial/context.py	Tue Aug 21 02:41:20 2012 +0200
+++ b/mercurial/context.py	Tue Aug 21 02:41:20 2012 +0200
@@ -237,8 +237,8 @@
 
     def extinct(self):
         """True if the changeset is extinct"""
-        # We should just compute a cache a check against it.
-        # see revset implementation for details
+        # We should just compute a cache and check against it.
+        # See revset implementation for details.
         #
         # But this naive implementation does not require cache
         if self.phase() <= phases.public:
--- a/mercurial/hgweb/server.py	Tue Aug 21 02:41:20 2012 +0200
+++ b/mercurial/hgweb/server.py	Tue Aug 21 02:41:20 2012 +0200
@@ -12,7 +12,7 @@
 from mercurial.i18n import _
 
 def _splitURI(uri):
-    """ Return path and query split from uri
+    """Return path and query that has been split from uri
 
     Just like CGI environment, the path is unquoted, the query is
     not.
--- a/mercurial/localrepo.py	Tue Aug 21 02:41:20 2012 +0200
+++ b/mercurial/localrepo.py	Tue Aug 21 02:41:20 2012 +0200
@@ -300,7 +300,7 @@
         """hiddenrevs: revs that should be hidden by command and tools
 
         This set is carried on the repo to ease initialisation and lazy
-        loading it'll probably move back to changelog for efficiency and
+        loading; it'll probably move back to changelog for efficiency and
         consistency reason
 
         Note that the hiddenrevs will needs invalidations when
@@ -2539,7 +2539,7 @@
         # uncompressed only if compatible.
 
         if not stream:
-            # if the server explicitly prefer to stream (for fast LANs)
+            # if the server explicitly prefers to stream (for fast LANs)
             stream = remote.capable('stream-preferred')
 
         if stream and not heads:
--- a/mercurial/lock.py	Tue Aug 21 02:41:20 2012 +0200
+++ b/mercurial/lock.py	Tue Aug 21 02:41:20 2012 +0200
@@ -122,7 +122,7 @@
     def release(self):
         """release the lock and execute callback function if any
 
-        If the lock have been acquired multiple time, the actual release is
+        If the lock has been acquired multiple time, the actual release is
         delayed to the last release call."""
         if self.held > 1:
             self.held -= 1