Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/basestore.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 | aa262fff87ac |
children | 67d010779907 |
line wrap: on
line diff
--- a/hgext/largefiles/basestore.py Thu Oct 13 15:15:32 2011 +0200 +++ b/hgext/largefiles/basestore.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. -'''Base class for store implementations and store-related utility code.''' +'''base class for store implementations and store-related utility code''' import os import tempfile @@ -168,9 +168,10 @@ if not remote: path = getattr(repo, 'lfpullsource', None) or \ ui.expandpath('default-push', 'default') - # If 'default-push' and 'default' can't be expanded - # they are just returned. In that case use the empty string which - # use the filescheme. + + # ui.expandpath() leaves 'default-push' and 'default' alone if + # they cannot be expanded: fallback to the empty string, + # meaning the current directory. if path == 'default-push' or path == 'default': path = '' remote = repo