[issue3163] alias command does not call post-pull hook

Sean Farley bugs at mercurial.selenic.com
Mon Dec 19 16:19:10 CST 2011


New submission from Sean Farley <sean.michael.farley at gmail.com>:

When making an alias for a command pull (called 'p') the hook doesn't seem to 
be called. The following describes how to recreate the bug with mercurial 
2.0.1:

$ hg clone https://bitbucket.org/seanfarley/settings
$ hg clone https://bitbucket.org/seanfarley/mercurial-cli-templates
$ cd settings
$ echo '
[hooks]
post-pull = $HG pull $@ --cwd ../mercurial-cli-templates' >> .hg/hgrc
$ hg pull
pulling from https://bitbucket.org/seanfarley/settings
searching for changes
no changes found
pulling from https://bitbucket.org/seanfarley/mercurial-cli-templates
searching for changes
no changes found

But the following does not work:

$ hg --config alias.p=pull p
pulling from https://bitbucket.org/seanfarley/settings
searching for changes
no changes found

----------
messages: 18358
nosy: seanfarley
priority: bug
status: unread
title: alias command does not call post-pull hook

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3163>
____________________________________________________


More information about the Mercurial-devel mailing list