mercurial - What are the hook parameters passed to external hook program/script? -


the title says it: looking variable names (hg_*) can make use of them in hook script..

oben has best answer, specific cases or poorly documented options can test specific hooks using hook prints variables:

hg --config hooks.pre-commit="export| grep hg_" commit 

where pre-commit can hook want test , commit can command want test.

for example 1 showed:

export hg_args='commit' export hg_opts='{'"'"'exclude'"'"': [], '"'"'message'"'"': '"''"', '"'"'addremove'"'"': none, '"'"'include'"'"': [], '"'"'close_branch'"'"': none, '"'"'user'"'"': '"''"', '"'"'date'"'"': '"''"', '"'"'logfile'"'"': '"''"', '"'"'mq'"'"': none}' export hg_pats='[]' 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -