Hi,
How likely it is to expect custom params in post-* hooks?
For example, I'd appreciate HG_DEST param to be present
in post-clone hook as an absolute path to freshly cloned
repository to avoid duplication logic for calculating it.
I need to `cd` into cloned dir to do some automatic settings,
but location of the new clone is not available.
HG_HOOKTYPE=post-clone
HG_OPTS={'branch': [], 'insecure': None, 'noupdate': None, 'pull':
None, 'remotecmd': '', 'rev': [], 'ssh': '', 'stream': None,
'uncompressed': None, 'updaterev': ''}
HG_HOOKNAME=post-clone
HG_RESULT=0
HG_PATS=['ssh://[email protected]/techtonik/wikify']
HG_ARGS=clone ssh://[email protected]/techtonik/wikify
Taken from https://gitlab.com/snippets/1794395
--
anatoly t.
_______________________________________________
Mercurial mailing list
[email protected]
https://www.mercurial-scm.org/mailman/listinfo/mercurial