[PATCH] shrink-revlog: help/doc tweaks
Dirkjan Ochtman
dirkjan at ochtman.nl
Thu Jan 7 10:00:04 CST 2010
On Thu, Jan 7, 2010 at 16:45, Greg Ward <greg-hg at gerg.ca> wrote:
> @@ -205,6 +206,13 @@
>
> cmdtable = {
> 'shrink': (shrink,
> - [('', 'revlog', '', 'shrink file')],
> + [('', 'revlog', '', 'index (.i) file of the revlog to shrink')],
> 'hg shrink [--revlog PATH]')
> }
> +
> +if __name__ == "__main__":
> + print """\
> +shrink-revlog is now an extension, not a standalone script.
> +You can enable it by adding this config value to [extensions]:
> + shrink = %s
> +Then run 'hg shrink'.""" % os.path.abspath(sys.argv[0])
Do you mind if I tighten this up a little? Say, to something like:
"shrink-revlog.py is now an extension (see hg help extensions)"
What with the relative recent-ness and target of this script, I don't
think the verbosity is required, and I'd rather not duplicate
instructions that are explained in general elsewhere.
Cheers,
Dirkjan
More information about the Mercurial-devel
mailing list