Adding HG_DEST for post-clone hook
anatoly techtonik
techtonik at gmail.com
Thu Jan 3 13:04:56 UTC 2019
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://hg@bitbucket.org/techtonik/wikify']
HG_ARGS=clone ssh://hg@bitbucket.org/techtonik/wikify
Taken from https://gitlab.com/snippets/1794395
--
anatoly t.
More information about the Mercurial
mailing list