HeptapodGitHandler: store self.git.refs in a neutral fashion
The new `gitlab_refs` attribute makes `heptapod_apply_changes()`, `update_default_gitlab_branch()` applicable outside of hg-git context. For fully native Mercurial projects, we'd simply initialize it with an initial read of the GitLab branches state file. The only catch is that we have to be class-neutral in the final conversion to `dict` for serialization of the GitLab branches state file (needed because `self.git.refs` does not implement `items()`). `gitlab_branches_hg_shas` now takes responsibility for that, for better encapsulation.
parent
f769512bdb66
No related branches found
No related tags found
Loading
Please register or sign in to comment