##// END OF EJS Templates
improve some comments and docstrings, fixing issues found when spell checking
Mads Kiilerich -
r17427:57c6c24b default
parent child Browse files
Show More
@@ -237,8 +237,8 b' class changectx(object):'
237
237
238 def extinct(self):
238 def extinct(self):
239 """True if the changeset is extinct"""
239 """True if the changeset is extinct"""
240 # We should just compute a cache a check against it.
240 # We should just compute a cache and check against it.
241 # see revset implementation for details
241 # See revset implementation for details.
242 #
242 #
243 # But this naive implementation does not require cache
243 # But this naive implementation does not require cache
244 if self.phase() <= phases.public:
244 if self.phase() <= phases.public:
@@ -12,7 +12,7 b' from mercurial.hgweb import common'
12 from mercurial.i18n import _
12 from mercurial.i18n import _
13
13
14 def _splitURI(uri):
14 def _splitURI(uri):
15 """ Return path and query split from uri
15 """Return path and query that has been split from uri
16
16
17 Just like CGI environment, the path is unquoted, the query is
17 Just like CGI environment, the path is unquoted, the query is
18 not.
18 not.
@@ -300,7 +300,7 b' class localrepository(object):'
300 """hiddenrevs: revs that should be hidden by command and tools
300 """hiddenrevs: revs that should be hidden by command and tools
301
301
302 This set is carried on the repo to ease initialisation and lazy
302 This set is carried on the repo to ease initialisation and lazy
303 loading it'll probably move back to changelog for efficiency and
303 loading; it'll probably move back to changelog for efficiency and
304 consistency reason
304 consistency reason
305
305
306 Note that the hiddenrevs will needs invalidations when
306 Note that the hiddenrevs will needs invalidations when
@@ -2539,7 +2539,7 b' class localrepository(object):'
2539 # uncompressed only if compatible.
2539 # uncompressed only if compatible.
2540
2540
2541 if not stream:
2541 if not stream:
2542 # if the server explicitly prefer to stream (for fast LANs)
2542 # if the server explicitly prefers to stream (for fast LANs)
2543 stream = remote.capable('stream-preferred')
2543 stream = remote.capable('stream-preferred')
2544
2544
2545 if stream and not heads:
2545 if stream and not heads:
@@ -122,7 +122,7 b' class lock(object):'
122 def release(self):
122 def release(self):
123 """release the lock and execute callback function if any
123 """release the lock and execute callback function if any
124
124
125 If the lock have been acquired multiple time, the actual release is
125 If the lock has been acquired multiple time, the actual release is
126 delayed to the last release call."""
126 delayed to the last release call."""
127 if self.held > 1:
127 if self.held > 1:
128 self.held -= 1
128 self.held -= 1
General Comments 0
You need to be logged in to leave comments. Login now