Skip to content
Snippets Groups Projects
  1. Sep 15, 2020
  2. Aug 18, 2020
    • Dan Villiom Podlaski Christiansen's avatar
      import: _always_ save the map after an import · c3f19d62a6f6
      Dan Villiom Podlaski Christiansen authored
      Pulls aren't done in a transaction, so you can safely interrupt them,
      and get a partial result. Unfortunately, the commit map isn't updated,
      so once you resume the pull, it'll begin at the start at same commit as
      last, rather than where interrupted.
      
      With this tiny change, I can interrupt and resume long-running pulls
      at leisure.
      
      There's no test, since writing the required infrastructure seems a bit
      overkill.
      c3f19d62a6f6
  3. Aug 03, 2020
    • muxator's avatar
      gitnodekw: do not crash on hg incoming when log template includes gitnode() · d6ac1ae9027a
      muxator authored
      Before this change, if the user's log template included a call to gitnode() to
      show the git commit hash, invoking "hg incoming" on a git repository that had at
      least one incoming change failed with:
      
         AttributeError: 'overlayrepo' object has no attribute 'githandler'
      
      Since an incoming changeset should already have well defined git commit hashes,
      there is no apparent reason for which "hg incoming" should not have this
      information already.
      
      This change is a workaround that removes any reference to the hg-git structures
      from the incoming changeset, thus merely avoiding the crash.
      
      Fixes #239 (#239)
      d6ac1ae9027a
  4. Aug 06, 2020
    • Georges Racinet's avatar
      Setting version for 0.9.0 · c17c6c915646
      Georges Racinet authored
      0.9.0
      c17c6c915646
    • Georges Racinet's avatar
      metadata: Mercurial 5.5 is supported · 70484a237a2c
      Georges Racinet authored
      We don't have a dedicated CI job for hg 5.5 right now, but the
      stable branch plays that role for now. Excerpts from a recent succesful
      pipeline:
      
        tests-py2-hg-stable:
          env HGRCPATH= python2 hg version
          Mercurial Distributed SCM (version 5.5+2-3d414dce2d40)
      
        tests-py3-hg-stable:
          env HGRCPATH= python3 hg version
          Mercurial Distributed SCM (version 5.5+2-3d414dce2d40)
      70484a237a2c
  5. Jul 23, 2020
    • Manuel Jacob's avatar
      compat: fix compatibility with upstream Mercurial · bf279164db2b
      Manuel Jacob authored
      Mercurial changeset 3b7aabd02e11 changed some code from `repo[ctx.p1().node()]`
      to `ctx.p1()`. `ctx.p1()` is using `ctx._parents`. The base class’s `_parents`
      returns instances of type `changectx` instead of `overlaychangectx`, leading to
      a crash later. Therefore we override `_parents` instead of `parents()`.
      
      The base class’s `parents()` method returns `self._parents`, so the return value
      of `parents()` is unchanged.
      bf279164db2b
  6. Jun 11, 2020
  7. Jun 13, 2020
  8. Jun 12, 2020
    • Manuel Jacob's avatar
      compat: reduce code in try clause · bec3bd68f011
      Manuel Jacob authored
      In the previous code, if lazy-importing compat failed, the except clause was
      executed, raising a bogus error.
      bec3bd68f011
    • Manuel Jacob's avatar
      py3: avoid using repr() on bytes · dd6700b046fe
      Manuel Jacob authored
      We didn’t realize that this was broken because tests/test-illegal-contents.t is
      skipped on the CI.
      
      The change is similar to 503e9abfd50e.
      
      As can be seen in the doctest, this changes output of non-ASCII characters. I
      argue that the new output is better than the old because the old output exposed
      an implementation detail (the repr() function of Python) while the new output
      is something that can be copied and passed to other programs.
      dd6700b046fe
    • Manuel Jacob's avatar
      git_handler: fix pycompat.ospathsep -> pycompat.ossep · 5fd70a8aa69e
      Manuel Jacob authored
      The mistake was introduced in 9d735570322d and we didn’t realize because
      tests/test-illegal-contents.t is skipped on the CI.
      5fd70a8aa69e
  9. May 13, 2020
  10. May 10, 2020
  11. May 11, 2020
    • Manuel Jacob's avatar
      py3: fix hanging read of SSH subprocesses · 7faec0ddfad7
      Manuel Jacob authored
      Previously, reading from SSH subprocesses did’t return on Python 3. Dulwich
      passes bufsize=0 to subprocess.Popen (default on Python 2, but not Python 3).
      Doing the same in hg-git fixed the issue.
      7faec0ddfad7
  12. May 10, 2020
  13. Jun 03, 2019
  14. May 08, 2020
  15. Mar 06, 2020
  16. Mar 07, 2020
  17. May 08, 2020
  18. May 03, 2020
  19. May 04, 2020
  20. May 03, 2020
  21. May 08, 2020
  22. May 03, 2020
  23. Mar 06, 2020
Loading