Ignoring changed files

Steve Borho steve at ageia.com
Mon Dec 4 20:33:58 UTC 2006


On Sunday 03 December 2006 11:37 am, Alexis S. L. Carvalho wrote:
> Thus spake Steve Borho:
> > Is there some way to force the pull to fail if there are locally
> > applied patches?
>
> Something like this should work (not really tested...):
>
> [hooks]
> prechangegroup.mq-no-pull = ! hg qtop > /dev/null 2>&1
>
> qtop exits with status 0 if there are patches applied and 1 otherwise
> (and hg exits with 255 if mq is not loaded).

This did work as advertised, thanks.

-- 
Steve Borho (steve at ageia.com)
http://www.borho.org/~steve/steveAgeia.asc
Key fingerprint = 3D9C 67D5 F426 4322 075B  0795 C9B2 C3A0 97D0 C090



More information about the Mercurial mailing list