Skip to content
Snippets Groups Projects
  1. Oct 27, 2019
    • Denis Laxalde's avatar
      tests: handle Message-Id email header possible wrapping · 4128ffba
      Denis Laxalde authored
      The "Message-Id" header will get wrapped with a new line when exceeding
      75 characters on Python 3 (see changeset 7d4f2e4899c5 introducing usage
      of email.header.Header.encode and respective doc). This will occur in an
      unpredictable manner depending on the hostname's length. To make the
      test output consistent across Python versions and hostname
      configuration, we add a filter to unwrap this header value.
      4128ffba
  2. Oct 24, 2019
    • Denis Laxalde's avatar
      py3: fix generated non-ascii message in test-notify.t · 90ee1f61
      Denis Laxalde authored
      The resulting "Subject:" header contains an encoded word in Python 3 so
      we have to add distinct outputs for Python 3 but underlying values are
      the same:
      
          >>> from email.header import decode_header
          >>> decode_header('=?utf-8?b?w6AuLi4=?=')
          [(b'\xc3\xa0...', 'utf-8')]
      90ee1f61
    • Denis Laxalde's avatar
      py3: fix headencode() with display=False · 7d4f2e48
      Denis Laxalde authored
      We previously called str() on a email.header.Header object. On Python 2,
      this returns a bytestring and the __str__ method is actually an alias to
      .encode() method. On Python 3, __str__ does not perform encoding (and
      returns a unicode string). To keep a consistent behavior across Python
      versions, we explicitly use .encode() and we wrap the result with
      encoding.strtolocal() to get a bytestring in all cases. As a side effect
      of forcing bytes conversion, we need to decode back in _addressencode().
      
      This is to make test-notify.t pass on Python 3.
      
      Also note that headers are now encoded in some patchbomb tests; this is
      because the charset is not always "us-ascii" ("iso-8859-1" otherwise) on
      Python 3.
      7d4f2e48
    • Denis Laxalde's avatar
      py3: account for extra line break in email headers in test-notify.t · 84c15836
      Denis Laxalde authored
      Long headers appears to be wrapped with new lines. In test-notify.t, we
      have a "filter.py" that replaces "\n" by " ", so we get an extra space
      in a Message-Id with a long value.
      84c15836
  3. Oct 23, 2019
    • Denis Laxalde's avatar
      packaging: ship only a single binary Debian package · 7b638d25
      Denis Laxalde authored
      We merge the mercurial and mercurial-common binary packages into a
      single mercurial package. This is essentially to ease installation (and
      upgrade) using a simple "dpkg -i" command. This also simplifies
      debian/rules by removing arch (in)dependent cleanups during
      installation.
      
      We have the mercurial binary Breaks: and Replaces: mercurial-common so
      that the latter will be removed upon upgrade.
      
      Also note the change from "override_dh_install" to
      "override_dh_auto_install" in debian/rules: this is because we do not
      want "make install" to be run automatically as we need the
      --install-layout=deb of "setup.py install" (otherwise, files would end
      up in $DESTDIR/usr/local).
      7b638d25
  4. Oct 21, 2019
  5. Oct 18, 2019
  6. Oct 06, 2019
    • Sushil Khanchi's avatar
      grep: enable all-files by default (BC) · 8cb5f96d
      Sushil Khanchi authored
      This patch deprecates the `--all-files` flag and make the all-files
      behaviour as default.
      
      In test-grep.t, I removed '--all-files' from every command where it was
      used, to reflect that all-files behaviour is default and there is no
      change even after the removal.
      And other changes in test files are because of changed behaviour.
      
      Differential Revision: https://phab.mercurial-scm.org/D7000
      
      .. bc::
      
          `hg grep` now searches working copy file contents by default. We
          recognize this is a significant change from past behavior, but
          surveys of large bodies of users indicated nobody used (and almost
          nobody understood) the previous no-flags behavior of `hg
          grep`. The new behavior aligns with the behavior most users
          expected (including hg's maintainers), which also happens to be
          the behavior of `git grep`. Given that the old behavior was
          confusing to the point of being unusable, we were comfortable
          changing this behavior.
      8cb5f96d
  7. Oct 12, 2019
  8. Oct 18, 2019
  9. Oct 17, 2019
  10. Oct 16, 2019
  11. Oct 10, 2019
  12. Oct 12, 2019
  13. Oct 15, 2019
  14. Oct 02, 2019
    • Pierre-Yves David's avatar
      sidedatacopies: only store an entry if it has values · 30570a05
      Pierre-Yves David authored
      This will make for a shorter storage and help use to write faster code in simple
      case. This change already provided a speed boost for copy tracing.
      
      For example here is combined time of running copies tracing on a 6989 pairs of
      revision on the pypy repos:
      
      before: 771s
      after:  631s - 18%
      
      This also has a very positive impact on changelog size. For example here are the
      number for the `00changelog.d` file of pypy.
      
      before: 30449712 Bytes
      after:  24973718 Bytes - 18%
      
      This give an overall quite acceptable overhead for storing copies into the
      changelog:
      
      filelog-only: 23370586
      sidedata:     24973718 Bytes + 7%
      
      Differential Revision: https://phab.mercurial-scm.org/D7068
      30570a05
  15. Oct 12, 2019
  16. Oct 14, 2019
  17. Jul 26, 2019
  18. Oct 13, 2019
  19. Oct 10, 2019
    • Pierre-Yves David's avatar
      copies: drop the findlimit logic · 069cbbb5
      Pierre-Yves David authored
      We don't use the limit anymore so we should stop computing that limit.
      
      I did not bother measuring the potential performance gain. I am assuming that
      not running any code will be faster that doing some computation and not using
      the result.
      069cbbb5
  20. Oct 08, 2019
  21. Oct 13, 2019
  22. Oct 04, 2019
  23. Oct 10, 2019
Loading