[PATCH] hooks with pats and opts

Matt Mackall mpm at selenic.com
Wed Jun 9 16:31:16 CDT 2010


On Mon, 2010-05-24 at 15:38 -0700, Chad Dombrova wrote:
> # HG changeset patch
> # User Chad Dombrova <chadrik at gmail.com>
> # Date 1274740669 25200
> # Branch stable
> # Node ID 2b11002ec5cec933968cf8228c3d4b77ef55eb3e
> # Parent  00b7d5e53be99a784ccd6e0bd1bc64c275316a57
> provide parsed python patterns and options to pre- and post- hooks.
> 
> python hooks receive two new keyword arguments:
> - pats: a list of parsed patterns
> - opts: a dictionary of parsed options; unsepcified options are set to their defaults
> 
> shell hooks receive two new variables containing the string reprentations of the above data:
> - $HG_PATS
> - $HG_OPTS

Queued, thanks. Please send along a patch for doc/hgrc.5.txt.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list