[PATCH] record: use cmdutil.command decorator

timeless timeless at gmail.com
Sun May 22 09:18:42 CDT 2011


On Sun, May 22, 2011 at 7:02 AM, Idan Kamara <idankk86 at gmail.com> wrote:
> There's a trick there (which I wanted to document but forgot...) for hg help
> qrecord: it steals the options from qnew, which is only available if mq is
> loaded.

yeah, i know, the trick is mine. please do document it at some point, thanks :)

> But since we want "hg help qrecord" to still suggest which extensions to
> enable even if mq is disabled, it adds an entry to the cmdtable with no
> options.
> It's a bit unfortunate but I couldn't think of a way to fix that...
> Anyway, I didn't touch that part (unless I screwed up).

as i added tests, you shouldn't have messed up if the tests passed :)


More information about the Mercurial-devel mailing list