Skip to content
Snippets Groups Projects
  1. Jun 28, 2020
    • Manuel Jacob's avatar
      curses: do not initialize LC_ALL to user settings (issue6358) · 1bab6b61
      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.
      1bab6b61
  2. Jun 25, 2020
    • Manuel Jacob's avatar
      hgweb: encode WSGI environment like OS environment · 2632c1ed
      Manuel Jacob authored
      Previously, the WSGI environment keys and values were encoded using latin-1.
      This resulted in a crash if a WSGI environment key or value could not be encoded
      using latin-1.
      
      On Unix, the OS environment is byte-based. Therefore we should do the reverse of
      what Python does for os.environ.
      
      On Windows, there’s no native byte-based OS environment. Therefore we should do
      the same as what mercurial.encoding does with the OS environment.
      2632c1ed
    • Manuel Jacob's avatar
      hgweb: deduplicate code · 839328c5
      Manuel Jacob authored
      A following patch will change the way keys and values are encoded. To reduce the
      diff, I’ve split off the uninteresting part.
      839328c5
  3. Jun 23, 2020
  4. Jun 25, 2020
  5. Jun 24, 2020
  6. Jun 23, 2020
  7. Jun 17, 2020
  8. Jun 16, 2020
  9. Jun 15, 2020
  10. Jun 06, 2020
    • Anton Shestakov's avatar
      tests: adjust to the new format in pyflakes output · 170f8a43
      Anton Shestakov authored
      According to the pyflakes' NEWS.rst, the default output format changed
      recently:
      
        2.2.0 (2020-04-08)
        - Include column information in error messages
      
      So the lines now read:
      
        contrib/perf.py:149:15 undefined name 'xrange'
        mercurial/hgweb/server.py:427:13 undefined name 'reload'
        mercurial/util.py:2862:24 undefined name 'file'
      
      This is a graft of a similar fix that ended up on default.
      
      Differential Revision: https://phab.mercurial-scm.org/D8630
      170f8a43
    • Anton Shestakov's avatar
      tests: consistently use pyflakes as a Python module · f9099e21
      Anton Shestakov authored
      We check availability of pyflakes as a module, and also running it for real as
      a module. Only fair to test filterpyflakes.py working correctly when using
      pyflakes as a module too.
      
      This is a graft of a similar fix that ended up on default.
      
      Differential Revision: https://phab.mercurial-scm.org/D8629
      f9099e21
    • Anton Shestakov's avatar
      tests: skip pyflakes for mercurial/thirdparty/ · 1ca0d5ca
      Anton Shestakov authored
      The current version of pyflakes (2.2.0) correctly detects one issue:
      
        mercurial/thirdparty/selectors2.py:335:40 '...'.format(...) has unused arguments at position(s): 1
      
      But we're not interested in fixing lint errors in third-party code, so we need
      to exclude at least selectors2.py. And in the discussion for this patch it was
      decided to just skip the entire thirdparty directory.
      
      This is a graft of a similar fix that ended up on default.
      
      Differential Revision: https://phab.mercurial-scm.org/D8628
      1ca0d5ca
  11. Jun 13, 2020
  12. Jun 12, 2020
    • Adam Hull's avatar
      ignore: note debugignore on ignore man page · b77d5b56
      Adam Hull authored
      It took me a long time to find debugignore. I found the ignore man page
      quickly. This change adds a debugging section to the ignore man page
      letting people know there is a debug command.
      b77d5b56
  13. Jun 13, 2020
  14. Jun 09, 2020
  15. Apr 30, 2020
  16. Jun 05, 2020
  17. Jun 02, 2020
    • Yuya Nishihara's avatar
      graft: fix --base value to be saved in state file · 2dc5ae95
      Yuya Nishihara authored
      'True' just works because it is treated as an integer revision '1' and
      only the truthiness of the basectx is important. If multiple source revisions
      were supported with --base, the resumed graft operation would go wrong.
      2dc5ae95
  18. May 16, 2020
Loading