using external commit hooks to kick off build

Matt Mackall mpm at selenic.com
Wed Mar 28 10:50:01 CDT 2007


On Wed, Mar 28, 2007 at 06:16:12PM +1000, Sean wrote:
> Hi,
> 
> I am trying to do a little post commit automation using commit hooks.
> 
> I can pick up the %HG_NODE% from the environment (windows) all right,
> but, how do I then retrieve a list of pathname\file.ext that were
> committed so that I can do stuff ?
> 
> The following works in my external .cmd file:
> 
> hg log --template {files} -r %HG_NODE%
> 
> but I am sure there must be a way to pass the file directly to the
> external script rather than have to invoke hg again like this ?

We can't pass it via the command line or the environment.. it could be
20,000 files.

Calling hg log as above is a perfectly reasonable thing to do.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list