This instance will be upgraded to Heptapod 0.21.0rc2 on 2021-04-16 at 14:00 UTC+2 (a few minutes of down time)

  1. 22 Oct, 2020 1 commit
  2. 31 Oct, 2020 1 commit
  3. 08 Oct, 2020 1 commit
  4. 17 Jul, 2020 2 commits
  5. 28 Jun, 2020 1 commit
    • Manuel Jacob's avatar
      curses: do not initialize LC_ALL to user settings (issue6358) · 1bab6b61b62b
      Manuel Jacob authored
      701341f57ceb moved the setlocale() call to right before curses was used. This
      didn’t fully solve the problem it was supposed to solve (locale-dependent
      functions, like date formatting/parsing and str methods on Python 2), but only
      postponed it.
      
      Initializing LC_CTYPE seems to be sufficient for curses to work correctly.
      Therefore LC_CTYPE is set while curses is used and reset afterwards. Some
      locale-dependent str methods might behave differently on Python 2 while curses
      is used, but that shouldn’d be a problem.
      
      --HG--
      branch : stable
      1bab6b61b62b
  6. 22 Jan, 2020 1 commit
  7. 10 Dec, 2019 2 commits
    • Jordi Gutiérrez Hermoso's avatar
      crecord: remove toggleamend · 51bfd056a2ee
      Jordi Gutiérrez Hermoso authored
      Previous commit removed its only calling site.
      51bfd056a2ee
    • Jordi Gutiérrez Hermoso's avatar
      crecord: repurpose "a" key to toggle all selections (BC) · c06eba91c380
      Jordi Gutiérrez Hermoso authored
      I really don't like "a". I keep accidentally hitting it when I
      actually want "A", and then I'm suddenly in a state I don't want to be
      in. There's a big wall of text telling me that I've turned amend mode
      on or off (which one was I orginally in?), and this seems very
      useless.
      
      If I wanted to amend or not, I would have chosen that from the
      command-line, not change my mind after I've already started picking
      hunks apart. Furthermore, for most uses of the hunk selector (revert,
      uncommit, shelve/unshelve), this amend toggle doesn't make sense.
      
      It seems much better to repurpose this key to be a "weaker" version of
      "A". It toggles all selections. This is pretty harmless if hit
      accidentally, (can just hit "a" again to toggle everything and undo
      it), and has immediate visual feedback that something happened: all
      the x's and blank spaces get switched around. And unlike with amend,
      the current flipped state is also immediately visible without having
      to read a wall of text.
      
      I'm calling this a BC, however, because somewhere, someone out there
      has probably really fallen in love with the old use of "a" and will
      get angry that we took it away.
      c06eba91c380
  8. 12 Dec, 2019 1 commit
    • Jordi Gutiérrez Hermoso's avatar
      crecord: rewrite help string to avoid mentioning "crecord" · ac54b8a2ebea
      Jordi Gutiérrez Hermoso authored
      Despite its heritage, "crecord" is now mostly Mercurial-internal
      jargon. I find it better to call it "the curses hunk selector".
      
      Also slightly rewrote the part about which commands can use it. While
      I do believe that commit, shelve, and revert are the only commands in
      core that can use it, Evolve also adds at least amend and uncommit to
      the list.
      ac54b8a2ebea
  9. 06 Nov, 2019 3 commits
    • Denis Laxalde's avatar
      py3: fix handling of ctrl keys in crecord (issue6213) · be0f77fd274d
      Denis Laxalde authored
      The "keypressed" value in handlekeypressed() is a key name obtained by
      curses's getkey(); this can be a multibyte string for special keys
      like CTRL keys. Calling curses.unctrl() with such a value fails on
      Python 3 with a TypeError as described in issue6213. (On Python 2, this
      does not crash, but I'm not sure the result is correct, though it does
      no matter here.)
      
      So instead of calling unctrl(), we compare "keypressed" with the
      expected "^L" obtained by curses.ascii.ctrl("L").
      
      --HG--
      branch : stable
      be0f77fd274d
    • Denis Laxalde's avatar
      py3: keep "keypressed" a native str in crecord · 7cc913396f8c
      Denis Laxalde authored
      This will help in the next changeset by avoiding a decode step. Also,
      the actual bytes conversion seems superfluous since values coming from
      curses's getkey() will be a native string. As a consequence, we open the
      "testcommands" file (used in test-interactive-curses.t) in text mode.
      
      --HG--
      branch : stable
      7cc913396f8c
    • Denis Laxalde's avatar
      py3: compare response of crecord's confirmationwindow with str · 117b41b1859d
      Denis Laxalde authored
      confirmationwindow() returns a native string, as a result of calling
      chr() on getch(). On Python 3, response.lower().startswith(b"y") leads
      to a TypeError.
      
      This fixes a crash when typing "r" in the curses interface of
      interactive commit.
      
      --HG--
      branch : stable
      117b41b1859d
  10. 01 Nov, 2019 1 commit
  11. 01 Dec, 2019 1 commit
  12. 28 Jun, 2020 1 commit
  13. 27 Jun, 2020 1 commit
  14. 26 Jun, 2020 1 commit
    • Manuel Jacob's avatar
      curses: do not initialize LC_ALL to user settings (issue6358) · d2227d4c9e6b
      Manuel Jacob authored
      701341f57ceb moved the setlocale() call to right before curses was used. This
      didn’t fully solve the problem it was supposed to solve (locale-dependent
      functions, like date formatting/parsing), but only postponed it.
      
      Initializing LC_CTYPE seems to be sufficient for curses to work correctly.
      Luckily this is already done at interpreter startup on modern Python versions
      and, since recently, by Mercurial in the pycompat module in all other cases.
      d2227d4c9e6b
  15. 08 Nov, 2019 1 commit
    • Augie Fackler's avatar
      cleanup: remove pointless r-prefixes on single-quoted strings · 9f70512ae2cf
      Augie Fackler authored
      This is the promised second step on single-quoted strings. These had
      existed because our source transformer didn't turn r'' into b'', so we
      had tagged some strings as r-strings to get "native" strings on both
      Pythons. Now that the transformer is gone, we can dispense with this
      nonsense.
      
      Methodology:
      
      I ran
      
          hg locate 'set:added() or modified() or clean()' | egrep '.*\.py$'  | xargs egrep --color=never -n  -- \[\^b\]\[\^a-z\]r\'\[\^\'\\\\\]\*\'\[\^\'\
      
      in an emacs grep-mode buffer, and then used a keyboard macro to
      iterate over the results and remove the r prefix as needed.
      
      # skip-blame removing unneeded r prefixes left over from Python 3 migration.
      
      Differential Revision: https://phab.mercurial-scm.org/D7306
      9f70512ae2cf
  16. 25 Jul, 2019 1 commit
  17. 10 Oct, 2019 2 commits
  18. 08 Jul, 2019 5 commits
  19. 25 Oct, 2018 1 commit
  20. 14 Jun, 2018 1 commit
  21. 06 Oct, 2019 4 commits
  22. 22 Mar, 2018 1 commit
  23. 02 Apr, 2019 1 commit
    • Arun Chandrasekaran's avatar
      crecord: new keys g & G to navigate to the top and bottom respectively · 80103ed2e8ee
      Arun Chandrasekaran authored
      This patch introduces two new keys 'g' and 'G' that helps to navigate to the
      top and bottom of the file/hunk/line respectively. This is inline with the shortcuts
      used in man, less, more and such tools that makes it convenient to navigate
      swiftly.
      
      'g' or HOME navigates to the top most file in the ncurses window.
      
      'G' or END navigates to the bottom most file/hunk/line depending on the whether
      the fold is active or not.
      
      If the bottom most file is folded, it navigates to that file and stops there.
      If the bottom most file is unfolded, it navigates to the bottom most hunk in
      that file and stops there. If the bottom most hunk is unfolded, it navigates to
      the bottom most line in that hunk.
      
      Differential Revision: https://phab.mercurial-scm.org/D6178
      80103ed2e8ee
  24. 21 Jan, 2020 1 commit
  25. 21 Mar, 2019 1 commit
    • Alexander Kobjolke's avatar
      crecord: draw on the whole screen · 66fc05ff0ea3
      Alexander Kobjolke authored
      When starting crecord, one can see that it has a small gap on the rightmost
      column which doesn't get used. This is in contrast to other interactive curses
      frontends such as chistedit.
      
      Disabling the displaying of the cursor allows drawing on the whole availabe
      area and thus some hacky code in align() could be removed.
      
      Differential Revision: https://phab.mercurial-scm.org/D6171
      66fc05ff0ea3
  26. 14 Mar, 2019 3 commits