gitrepo: initial support for listkeys
This changeset adds test coverage for comparing "hg outgoing -B" in normal Mercurial usage with Hg-Git usage. This didn't match, since previously, gitrepo didn't provide a meaningful listkeys implementation. Now, it does. gitrepo now has access to a GitHandler when a localrepo is available. This handler is used to access the information needed to implement listkeys for namespaces (currently, only bookmarks) and bookmarks. A couple of other tests were testing "divergent bookmark" scenarios. These tests have been updated to filter out the divergent bookmark output, as it isn't consistent across the supported Mercurial versions.
Showing
- hggit/git_handler.py 1 addition, 1 deletionhggit/git_handler.py
- hggit/gitrepo.py 27 additions, 0 deletionshggit/gitrepo.py
- hggit/overlay.py 6 additions, 0 deletionshggit/overlay.py
- tests/test-bookmark-workflow.t 10 additions, 0 deletionstests/test-bookmark-workflow.t
- tests/test-incoming.t 2 additions, 1 deletiontests/test-incoming.t
- tests/test-outgoing.t 1 addition, 1 deletiontests/test-outgoing.t
- tests/test-pull-after-strip.t 3 additions, 2 deletionstests/test-pull-after-strip.t
- tests/test-push.t 2 additions, 2 deletionstests/test-push.t
Loading
Please register or sign in to comment