1. 13 Jan, 2021 1 commit
    • Georges Racinet's avatar
      Trigger API scope: fixed RSpec tests · 2d1473ff7229
      Georges Racinet authored
      They were failing for ordering reasons only, and this
      slept through in the publication of the topic introducing
      the new scope.
      
      --HG--
      branch : heptapod-stable
      2d1473ff7229
  2. 16 Dec, 2020 1 commit
  3. 15 Dec, 2020 2 commits
  4. 17 Dec, 2020 1 commit
  5. 15 Dec, 2020 1 commit
  6. 14 Dec, 2020 2 commits
  7. 22 Aug, 2020 1 commit
    • Georges Racinet's avatar
      Removed dead code for feature gating of Git snippets · ca4e7cc8e1fc
      Georges Racinet authored
      This parallels what has been done upstream in `GitHttpController`,
      and wasn't called due to lack of the corresponding `before_action`
      (also removed upstream in `GitHttpController` but never present in
      the Mercurial variant).
      
      --HG--
      branch : heptapod-stable
      ca4e7cc8e1fc
  8. 12 Jan, 2021 1 commit
    • Georges Racinet's avatar
      RSpec CI: adding two tests from requests/ · 23097beb2862
      Georges Racinet authored
      These are the one modified while developping the token scope
      side of Mercurial pull mirrors, and will now be run by regular
      development pipelines.
      
      --HG--
      branch : heptapod-stable
      23097beb2862
  9. 06 Jan, 2021 1 commit
    • Raphaël Gomès's avatar
      tokens: add trigger_api scope on projects and user tokens · c60fa020c8cc
      Raphaël Gomès authored
      This new scope allows for projects and maintainers to create tokens that are
      only valid for triggering existing resources.
      
      For now, this can only be used to trigger Mercurial pull mirrors, but other
      use-cases (like triggering pipelines, etc.) could be added in the future.
      
      --HG--
      branch : heptapod-stable
      c60fa020c8cc
  10. 10 Jan, 2021 2 commits
  11. 11 Jan, 2021 1 commit
  12. 06 Jan, 2021 2 commits
    • Georges Racinet's avatar
      CI Rspec: stop allowing failures · f588c3f1e359
      Georges Racinet authored
      It made sense while the sharding and the extended scope
      were being developped. Now that they drove the 0.18 release,
      we can get back to normal enforcement.
      
      --HG--
      branch : heptapod
      f588c3f1e359
    • Georges Racinet's avatar
      CI RSpec: fixing jobs for detached MR pipelines · e6a1d2adc29a
      Georges Racinet authored
      It turns out that commit branch information is not available
      for "detached" Merge Request pipelines
      (neither Git nor Mercurial, although Mercurial would probably be a
      bit more relevant). It makes sense to use the target branch instead.
      
      --HG--
      branch : heptapod
      e6a1d2adc29a
  13. 20 Dec, 2020 4 commits
    • Georges Racinet's avatar
      hg-pull mirrors: updated wording of settings page about options · 7353df5c78ec
      Georges Racinet authored
      Now it reflects the fact that pulling only protected branches
      is supported.
      
      --HG--
      branch : heptapod
      7353df5c78ec
    • Georges Racinet's avatar
      Commit API: expose Mercurial changeset IDs · fc96c7df37cc
      Georges Racinet authored
      This introduces the `hg_id` and `short_hg_id` fields in the
      JSON response.
      
      The difference with `hpd_display_id` and `hpd_short_display_id` (used
      in the Web UI) is that they are exposed for Mercurial repositories only.
      
      For Mercurial native projects, these are identical to `id` and `short_id`.
      
      Closes #387
      
      --HG--
      branch : heptapod
      fc96c7df37cc
    • Georges Racinet's avatar
      Commit model: short_hgsha · 17c819b95339
      Georges Racinet authored
      Similarly to `hgsha`, and by contrast with `hpd_short_display_id`,
      this is `nil` if the repository isn't Mercurial.
      
      --HG--
      branch : heptapod
      17c819b95339
    • Georges Racinet's avatar
      Commit model: avoid using `project` · 89edd586c260
      Georges Racinet authored
      For a while now, repositories have not necessarily been tied to
      Projects, but to more general "containers". This happens, e.g.,
      with Snippets, Group Wikis.
      
      Besides, even on Mercurial Projects, Snippets repositories are
      Git.
      
      It is safer to let the Repository model handle that gracefully.
      
      --HG--
      branch : heptapod
      89edd586c260
  14. 16 Dec, 2020 2 commits
  15. 15 Dec, 2020 3 commits
    • Georges Racinet's avatar
      HgGitRepository: RSpec tests for HGRC management methods · 505e6d1bea7e
      Georges Racinet authored
      Probably not comprehensive enough, but writing new ones
      will be easy from now
      
      --HG--
      branch : heptapod-stable
      505e6d1bea7e
    • Georges Racinet's avatar
      Fixing Repository Graph view · 604f866cbf2c
      Georges Racinet authored
      Heptapod 0.17 introduced the VCS-agnostic commit
      "display id", but was overly optimistic it could replace
      the commit ids in the JSON that is returned for
      client-side graph rendering. Indeed that JSON uses the
      plain ids to represent relationships.
      
      The right thing to do here is to get back to the anterior
      way of doing, just using the neutral method that will work
      for all types of repositories.
      
      Closes #385
      
      --HG--
      branch : heptapod-stable
      604f866cbf2c
    • Georges Racinet's avatar
      Commit: implement hpd_display_parent_id and _ids · abd2b0306a8c
      Georges Racinet authored
      This was missing, and could turn out to be useful, even though
      analysis shows that's not the case for #385.
      
      The new tests look to be trivial, because display ids
      are just the ids for commits of Git repositories. But
      the point is to check the APIs are internally consistent
      and avoid mistakes in refactorings.
      
      There is a test in HgGitRepository that makes sure that
      the Mercurial conversion for display is correct.
      
      --HG--
      branch : heptapod-stable
      abd2b0306a8c
  16. 09 Dec, 2020 1 commit
  17. 16 Dec, 2020 1 commit
  18. 14 Dec, 2020 9 commits
  19. 09 Dec, 2020 1 commit
  20. 14 Dec, 2020 2 commits
  21. 13 Dec, 2020 1 commit