I would like to write a pre- hook for Mercurial written in Python. I would like to check the flags passed to the pull command, and also check the sync alias (the "remote URL").
I didn't notice anything like that on:
I would like to write a pre- hook for Mercurial written in Python. I would like to check the flags passed to the pull command, and also check the sync alias (the "remote URL").
I didn't notice anything like that on:
Copyright © 2021 Jogjafile Inc.
kwargs['args']seems to contain the command (as a single string) and all command arguments (including the pull sync alias URL, at least when pulling via TortoiseHG).So the desired hook could be something like this: