-
- Downloads
post-receive: convert pushvars in Git options for GitLab
In many articulation places, we make sure not to transmit an empty dict, in order not to update all existing tests. Because pushvars have to be a a mapping (as environment variables in the CLI, already parsed as a dict in the internal API) and Git options are arbitrary strings (which GitLab can interpret as mapping if they have the `=` token), we decided arbitrarily to translate as follows: value is empty string -> send just the key otherwise, send `key=value` Later on we can have the CLI parser of Mercurial also accept just `KEY` to be synonymous of `KEY=`.
Showing
- heptapod/gitlab/hooks.py 14 additions, 1 deletionheptapod/gitlab/hooks.py
- heptapod/gitlab/tests/test_hooks_integration.py 24 additions, 0 deletionsheptapod/gitlab/tests/test_hooks_integration.py
- heptapod/required.hgrc 3 additions, 0 deletionsheptapod/required.hgrc
- hgext3rd/heptapod/state_maintainer.py 21 additions, 3 deletionshgext3rd/heptapod/state_maintainer.py
- hgext3rd/heptapod/tests/git/test_integration.py 19 additions, 0 deletionshgext3rd/heptapod/tests/git/test_integration.py
Loading
Please register or sign in to comment