Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/lfcommands.py @ 15254:dd03d3a9f888
largefiles: more work on cleaning up comments
- always say "largefile", not "lfile"
- cleanup mangled syntax, hopefully correctly
(punctuation: it's your friend!)
- wrap to 75 columns (where feasible)
author | Greg Ward <greg@gerg.ca> |
---|---|
date | Thu, 13 Oct 2011 20:45:49 -0400 |
parents | 67d010779907 |
children | 7ab05d752405 |
line wrap: on
line diff
--- a/hgext/largefiles/lfcommands.py Thu Oct 13 20:24:29 2011 -0400 +++ b/hgext/largefiles/lfcommands.py Thu Oct 13 20:45:49 2011 -0400 @@ -243,13 +243,13 @@ if f in lfiles: dstfiles.append(lfutil.standin(f)) - # lfile in manifest if it has not been removed/renamed + # largefile in manifest if it has not been removed/renamed if f in ctx.manifest(): if 'l' in ctx.filectx(f).flags(): if renamed and renamed[0] in lfiles: raise util.Abort(_('largefile %s becomes symlink') % f) - # lfile was modified, update standins + # largefile was modified, update standins fullpath = rdst.wjoin(f) lfutil.createdir(os.path.dirname(fullpath)) m = util.sha1('') @@ -282,7 +282,7 @@ raise IOError() renamed = fctx.renamed() if renamed: - # standin is always a lfile because lfileness + # standin is always a largefile because largefile-ness # doesn't change after rename or copy renamed = lfutil.standin(renamed[0])