[PATCH 4 of 4] largefiles: improve help

Matt Mackall mpm at selenic.com
Tue Oct 11 23:21:49 CDT 2011


On Tue, 2011-10-11 at 21:12 -0400, Greg Ward wrote:
> # HG changeset patch
> # User Greg Ward <greg at gerg.ca>
> # Date 1318381803 14400
> # Node ID ce4f688f6a1ec3a3f0f81c7dda9219d25cb3641d
> # Parent  3a14a9ab169a9a9a677a1da17e50a0420c1df307
> largefiles: improve help
> 
> Extension help taken from the URL formerly in the text
> (https://developers.kilnhg.com/Repo/Kiln/largefiles/largefiles/File/usage.txt)
> and improved.

Thanks, these are queued.

>  cmdtable = {
>      'lfconvert': (lfconvert,
> -                  [('s', 'size', '', 'All files over this size (in megabytes) '
> -                  'will be considered largefiles. This can also be specified '
> -                  'in your hgrc as [largefiles].size.'),
> -                  ('','tonormal',False,
> -                      'Convert from a largefiles repo to a normal repo')],
> +                  [('s', 'size', '', 
> +                    _('minimum size (MB) for files to be converted '
> +                      'as largefiles'),
> +                    'SIZE'),
> +                  ('', 'tonormal', False,
> +                   _('convert from a largefiles repo to a normal repo')),
> +                  ],
>                    _('hg lfconvert SOURCE DEST [FILE ...]')),
>      }

Someone should modernize this with a decorator.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list