Ignoring changed files

Giorgos Keramidas keramida at ceid.upatras.gr
Mon Dec 4 22:24:38 UTC 2006


On 2006-12-04 14:33, Steve Borho <steve at ageia.com> wrote:
> 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.

This is such a useful tip, for a problem which can bite people using MQ
so often, that it deserves a place in the wiki, if it's not already
there.  I can't do this tonight (i.e. if you beat me to it it should be
fine), but can you please check that this is listed in a promiment place
in the MQ section of the wiki and add it if it's not already there?

Thanks in advance,

Giorgos




More information about the Mercurial mailing list