Skip to content
Snippets Groups Projects
Commit b5cb0d562c2c authored by Georges Racinet's avatar Georges Racinet
Browse files

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
1 merge request!50Separation of hg-git and generic parts in "mirroring" code
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment