prechangegroup.locked (was: stdout strangeness)
Brendan Cully
brendan at kublai.com
Wed Jul 8 13:08:40 CDT 2009
On Wednesday, 08 July 2009 at 11:04, Stephen Rasku wrote:
> On Wed, Jul 8, 2009 at 10:51, Adrian Buehlmann <adrian at cadifra.com> wrote:
>
> On 08.07.2009 19:43, Stephen Rasku wrote:
> > On Tue, Jul 7, 2009 at 22:33, Steve Borho<steve at borho.org> wrote:
> >> Can anyone explain this behavior?
> >>
> >> (test can be any repository)
> >> % hg clone test foo
> >> % cd foo
> >> % echo "[hooks]\nprechangegroup.locked = echo REPOSITORY IS LOCKED &&
> >> exit 1" >> .hg/hgrc
> >
> > What does the prechangegroup.locked hook actually do? I don't see a
> > reference to it on the hooks page:
> >
> > http://hgbook.red-bean.com/read/
> handling-repository-events-with-hooks.html
> >
>
> See http://www.selenic.com/mercurial/hgrc.5.html#hooks
>
> There's also a page in the wiki:
> http://mercurial.selenic.com/wiki/Hook
>
>
> Yeah, but what does the .locked part of the hook mean? Is it even valid?
> Neither of those pages describe it.
The hgrc man page has an overly brief description:
"Multiple hooks can be run for the same action by appending a suffix to
the action."
so ".locked" is just an arbitrary suffix that serves to name this
particular prechangegroup hook.
More information about the Mercurial
mailing list