Skip to content
Snippets Groups Projects
  1. Oct 18, 2008
  2. Jun 12, 2008
  3. Oct 18, 2008
  4. Oct 17, 2008
    • Christian Ebert's avatar
      highlight: convert text to local before passing to pygmentize (issue1341) · db755735
      Christian Ebert authored
      Example case:
      Display file written in iso-8859-1 with current HGENCODING utf-8.
      At the moment only an Error page appears because pygmentize
      chokes on the replacement chars.
      
      Alternatives:
      1) Turn off highlighting and avoid UnicodeDecodeError
         for files that are not in HGENCODING.
      2) [this patch] use util.tolocal to display these files.
      
      Alternative 2) seems ok, as this only concerns display and
      readability.
      
      See also: fe38b0a3a928, apparently put aside during refactor of
      highlight.
      
      Add test for UnicodeDecodeError with iso-8859-1 file contents.
      db755735
  5. Oct 18, 2008
  6. Oct 09, 2008
    • Petr Kodl's avatar
      Take advantage of fstat calls clustering per directory if OS support it. · 619ebf82
      Petr Kodl authored
      util module implements two versions of statfiles function
      
      _statfiles calls lstat per file
      
      _statfiles_clustered takes advantage of optimizations in osutil.c, stats all
      files in directory at once when new directory is hit and caches the results
      
      util.statfiles dispatches to appropriate version during module loading
      
      The speedup on directory tree with 2k directories and 63k files is about
      factor of 1.8 (1.3s -> 0.8s for hg diff - hg startup overhead about .2s)
      
      At this point only Win32 now benefit from this patch.
      Rest of OSes use the non clustered implementation.
      619ebf82
  7. Oct 16, 2008
    • Christian Ebert's avatar
      Document email.charsets in hgrc.5 · ceb8aef0
      Christian Ebert authored
      hgrc.5.ja.txt probably should include an example like:
      
      [email]
      charsets = iso-8859-1, iso-8859-15, windows-1252, iso-8859-2,
                 windows-1250, iso-2022-jp, iso-2022-jp-ms
      ceb8aef0
  8. Jul 12, 2008
    • Christian Ebert's avatar
      notify: mime-encode messages · e981725d
      Christian Ebert authored
      - addresses will be properly encoded
      - message bodies will also be encoded as we are not sending
        patches that are meant to be applied
      - update test output
      - adapt test-keyword to ignore the new headers
      e981725d
    • Christian Ebert's avatar
      patchbomb: mime-encode headers and parts not containing patches · c5c2d43b
      Christian Ebert authored
      Do nothing for "hg email --test" to preserve display.
      c5c2d43b
    • Christian Ebert's avatar
      mail: add methods to handle non-ascii chars · 30e49d54
      Christian Ebert authored
      - headencode, addressencode: encode headers
      - mimeencode: encode message parts not containing patches
      - new email config "charsets"
      
      Users may configure email.charsets as a list of charsets they
      consider appropriate for the recipients of their outgoing mails.
      
      Conversion is tried in this order:
      1. us-ascii
         (ascii, us-ascii are removed from email.charsets if present)
      2. email.charsets (if present) in order given
      3. util._fallbackencoding, util._encoding, utf-8
         if not already in email.charsets
      30e49d54
  9. Oct 17, 2008
    • kiilerix's avatar
      mq: Allow qrefresh --silent to take parameters · f7fc5f5e
      kiilerix authored
      'hg qrefresh --short file.txt' now adds changes made to file.txt to current
      patch.
      
      This builds on a patch for implementing --amend by Kirill Smelkov as discussed
      in issue933.
      
      FIXME: Why do mq refresh have two matchers if we only need one?
      f7fc5f5e
  10. Oct 18, 2008
  11. Oct 08, 2008
  12. Oct 16, 2008
  13. Oct 17, 2008
  14. Oct 05, 2008
  15. Oct 17, 2008
  16. Oct 14, 2008
    • Benoit Boissinot's avatar
      bdiff: normalize the diff (issue1295) · 9514cbb6
      Benoit Boissinot authored
      When the common part of a diff can be moved forward, move it forward.
      Otherwise we don't get deterministic results (it would depends on the way we
      split for the recursion).
      That way we get identical hunks when doing the same change, it helps to solve
      issue1295 (inconsistent diffs on different side during a merge).
      9514cbb6
  17. Oct 15, 2008
  18. Oct 13, 2008
  19. Oct 14, 2008
  20. Oct 07, 2008
  21. Oct 13, 2008
  22. Oct 12, 2008
Loading