hpd-export-native-to-git: better robustness and ignoring special refs
As heptapod#2021 demonstrate, special refs are a liability (a keep-around in this case). At this point, the command is used for mirroring to external Git services only (no more rollback of the native migration), so we simply stop synchronizing any special ref. Also, we treat the case where some Mercurial changeset is not properly mapped to Git (hard to come by in unit tests). In this case, we do not sync the ref, log a warning, and also avoid to remove the ref from the Git side.
parent
40c894f0
No related branches found
No related tags found
Showing
- hgext3rd/heptapod/git.py 9 additions, 10 deletionshgext3rd/heptapod/git.py
- hgext3rd/heptapod/tests/git/test_inner.py 44 additions, 0 deletionshgext3rd/heptapod/tests/git/test_inner.py
- hgext3rd/heptapod/tests/test_commands_misc.py 2 additions, 14 deletionshgext3rd/heptapod/tests/test_commands_misc.py
Loading
Please register or sign in to comment