1. 03 Aug, 2020 1 commit
    • Georges Racinet's avatar
      Operations: port over HGRC files from main repo to share · db7ee4fbacad
      Georges Racinet authored
      Closes #324
      
      The specific repo configuration was ignored in all Mercurial
      operations initiated by the Rails app.
      
      I've considered making links instead of copying the file, but
      it could give rise to funny situations if the original HGRC
      files get changed in concurrency with some operation.
      
      Edition of the HGRC files is by no means atomic in itself,
      but that's a separate issue. On the other hand, operations can be
      arbitrary long, involving several calls to the `hg` executable.
      One would not want the rules to change in the middle of that.
      
      --HG--
      branch : heptapod
      db7ee4fbacad
  2. 04 Aug, 2020 11 commits
  3. 31 Jul, 2020 2 commits
  4. 03 Aug, 2020 1 commit
    • Georges Racinet's avatar
      ui: hide "Web IDE" button from the directory view · 742ed75595d5
      Georges Racinet authored
      Because GitLab is very Git oriented, this is called a 'tree' view,
      but nevertheless, noticed while testing previous commit that this
      one was still there, and even proposing a fork to people not
      having direct commit rights.
      
      --HG--
      branch : heptapod
      742ed75595d5
  5. 31 Jul, 2020 2 commits
    • Raphaël Gomès's avatar
      ui: hide "Web IDE" button from the web UI · 01e67b976a63
      Raphaël Gomès authored
      The Web IDE is not yet supported on Heptapod (see issue #285).
      
      --HG--
      branch : heptapod
      01e67b976a63
    • Georges Racinet's avatar
      HGitaly test setup: listening at configured address · be29b013ca96
      Georges Racinet authored
      With the existing RSpec tests calling that address, this
      makes it possible to use another address than the default
      `tcp://localhost:9237`.
      
      Next move will be to always configure the test environment
      differently than the development one in the HDK, so that
      developers don't need to shut their main HGitaly
      server down to run the tests.
      
      --HG--
      branch : heptapod
      be29b013ca96
  6. 29 Jul, 2020 3 commits
    • Georges Racinet's avatar
      HGitaly: Rspec test for the connection · 54beeb896034
      Georges Racinet authored
      This validates that our testing harness is functional.
      
      We're using a `HgGitRepository` but it doesn't matter and
      as long as it's in the code base, it's even better for this
      low level not to depend on the future `HGitalyRepository`.
      
      Even if the test is pretty trivial, it's also interesting to
      be able to add uncommitted tests in there for low overhead
      debugging purposes.
      
      --HG--
      branch : heptapod
      54beeb896034
    • Georges Racinet's avatar
      HGitaly: introducing the `hgitaly_adress` storage setting · 71a92071a33f
      Georges Racinet authored
      We give it for now a default value, because that simplifies
      our scaffolding a lot for this initial development.
      
      Eventually, it should become as explicit and often Unix Domain
      socket oriented as `gitaly_address` is.
      
      --HG--
      branch : heptapod
      71a92071a33f
    • Georges Racinet's avatar
      HGitaly: starting the server from RSpec tests · 8983ca3d188a
      Georges Racinet authored
      All the configuration is passed on the command line, so we
      don't need anything in CI's test.hgrc.
      
      A key difference with the Gitaly setup is that we don't install
      HGitaly: we assume it's installed already, whether that's manually,
      by the CI or by the HDK. That's good enough for now. Besides, when
      it's released on PyPI, we'll put it in `python/requirements`, which
      will bring at least a base version (and the possibility to test
      against the latest released HGitaly instead of the current dev
      version)
      
      Later on, when we'll have Unix Domain sockets, it'll make sense to
      make a temporary directory, same as the Gitaly service for tests.
      
      --HG--
      branch : heptapod
      8983ca3d188a
  7. 27 Jul, 2020 2 commits
  8. 29 Jul, 2020 4 commits
  9. 28 Jul, 2020 3 commits
  10. 27 Jul, 2020 8 commits
  11. 19 Jul, 2020 3 commits
    • Georges Racinet's avatar
      RSpec tests for HgAccess · 4dc62079111e
      Georges Racinet authored
      These were simply copied from `git_access_spec` and
      adapted to work with `hg_access_spec`.
      
      At this point, we removed the tests related to protected
      branches, because they will probably lead us to changes that
      should not be done in the Heptapod 0.15 series
      
      It would be better to find a way to reduce code duplication, but
      this is obviously better than no tests.
      
      --HG--
      branch : heptapod
      4dc62079111e
    • Georges Racinet's avatar
      RSpec factories: hg_git_project and hg_repository · c40ee05f4b4f
      Georges Racinet authored
      The new `:hg_git_project` factory creates a Project
      with `vcs_type='hg_git'`, and the `:hg_repository`
      trait can be used to initialize its repository with
      commit content.
      
      The `:empty_repository` trait also works straight ahead for
      Projects created by `:hg_git_project`.
      
      --HG--
      branch : heptapod
      c40ee05f4b4f
    • Georges Racinet's avatar
      hg_access: restore check for authentication abilities · 5e816f27eabf
      Georges Racinet authored
      Not entirely sure what the real security implications are, but
      this has to be backported to the stable branch in any case.
      
      the `check_authentication_abilities!` method didn't use the
      correct (Mercurial) lists of download and push commands in the
      case of `HgAccess`. As a result, it was doing nothing.
      
      Spotted by RSpec tests about to be introduced, because the
      `ForbiddenError` message is expected to be the specific
      `:auth_download` or `:auth_upload` instead of just `download`
      or `upload`.
      
      --HG--
      branch : heptapod-stable
      5e816f27eabf