using external commit hooks to kick off build

Sean schliden at gmail.com
Wed Mar 28 03:16:12 CDT 2007


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 ?

TIA

Sean


More information about the Mercurial mailing list