[pre-push hook seems buggy]
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Mon Jul 20 15:11:38 UTC 2020
On 7/19/20 9:11 AM, Uwe Brauer wrote:
>
> > On 7/16/20 11:28 AM, Victor Sudakov wrote:
>
> > You can make sure you alway pull before committing by adding a hook in
> > your config.
>
>
> > [hooks]
> > pre-commit=hg pull -u
>
>
> Thanks for pointing this out. I found this hook a bit too confusing so I
> tried out
> pre-push:
>
> pre-push=hg pull -u
>
> Works as expected
>
> But
>
>
> pre-push=hg fetch
>
> Gave me
>
> abort: working directory not at branch tip
> (use 'hg update' to check out branch tip)
> abort: pre-push hook exited with status 255
>
>
> Which was nonsense. Just in case I run hg update
> but received the same message.
>
> Is this a BUG?
This could be a bug with topic. Which version of everyting are you using ?
--
Pierre-Yves David
More information about the Mercurial
mailing list