Mercurial > hg
diff hgext/largefiles/localstore.py @ 15252:6e809bb4f969
largefiles: improve comments, internal docstrings
- fix some ungrammatical/unclear/incorrect comments/docstrings
- rewrite some really unclear comments/docstrings
- make formatting/style more consistent with the rest of Mercurial
(lowercase without period unless it's really multiple sentences)
- wrap to 75 columns
- always say "largefile(s)", not "lfile(s)" (or "big files")
- one space between sentences, not two
author | Greg Ward <greg@gerg.ca> |
---|---|
date | Wed, 12 Oct 2011 20:59:27 -0400 |
parents | cfccd3bee7b3 |
children | c65f5b6e26d4 |
line wrap: on
line diff
--- a/hgext/largefiles/localstore.py Thu Oct 13 15:15:32 2011 +0200 +++ b/hgext/largefiles/localstore.py Wed Oct 12 20:59:27 2011 -0400 @@ -6,7 +6,7 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -'''Store class for local filesystem.''' +'''store class for local filesystem''' import os @@ -17,17 +17,17 @@ import basestore class localstore(basestore.basestore): - '''Because there is a system wide cache, the local store always uses that - cache. Since the cache is updated elsewhere, we can just read from it here - as if it were the store.''' + '''Because there is a system-wide cache, the local store always + uses that cache. Since the cache is updated elsewhere, we can + just read from it here as if it were the store.''' def __init__(self, ui, repo, remote): url = os.path.join(remote.path, '.hg', lfutil.longname) super(localstore, self).__init__(ui, repo, util.expandpath(url)) def put(self, source, filename, hash): - '''Any file that is put must already be in the system wide cache so do - nothing.''' + '''Any file that is put must already be in the system-wide + cache so do nothing.''' return def exists(self, hash):