Skip to content
Snippets Groups Projects
  1. Oct 21, 2017
  2. Oct 20, 2017
    • Matt Harbison's avatar
      test-arbitraryfilectx: stabilize for Windows · 9645c2a2
      Matt Harbison authored
      Previously, the second last test (context.arbitraryfilectx(..)) returned True on
      Windows.  I changed the repo setup sequence to import a patch, so that way the
      repo would have a proper symlink.  That made the last test fail, since it is
      comparing files in wdir(), one of which is not the expected symlink.
      
      Apparently the (feature !) line matching doesn't work well with (no-eol), so I
      had to conditionalize the test instead of the output.
      9645c2a2
  3. Oct 28, 2017
    • Durham Goode's avatar
      dirstate: remove excess attribute lookups for dirstate.status (issue5714) · ffeea240
      Durham Goode authored
      A recent refactor added a layer of abstraction to the dirstate which makes doing
      things like 'foo in dirstate' now require some extra Python attribute lookups.
      This is causing a 100ms slow down in hg status for mozilla-central.
      
      The fix is to hoist the inner dict's functions onto the main class once the lazy
      loading it complete, as well as store the actual functions before doing the
      status loop (as is done for other such functions).
      
      In my testing, it seems to address the performance regression, but we'll
      need to see the perf run results to know for sure.
      
      Differential Revision: https://phab.mercurial-scm.org/D1257
      ffeea240
  4. Oct 26, 2017
  5. Oct 27, 2017
  6. Oct 28, 2017
  7. Oct 26, 2017
  8. Oct 25, 2017
  9. Oct 24, 2017
  10. Oct 20, 2017
  11. Oct 23, 2017
  12. Oct 04, 2017
  13. Oct 21, 2017
  14. Oct 20, 2017
  15. Aug 05, 2017
  16. Oct 20, 2017
  17. Oct 19, 2017
  18. Oct 18, 2017
    • Denis Laxalde's avatar
      log: handle binary files in --line-range patterns · 4554649a
      Denis Laxalde authored
      When a file is binary patch.trydiff() would yield None for 'hunkrange'. Handle
      this case in the hunksfilter() callback.
      Add tests with and without diff.git option as binary handling differs
      depending on this option's value.
      4554649a
  19. Oct 17, 2017
  20. Oct 19, 2017
  21. Oct 18, 2017
    • Paul Morelle's avatar
      sparse-read: ignore trailing empty revs in each read chunk · 1bde8e8e
      Paul Morelle authored
      An empty entry in the revlog may happen for two reasons:
      - when the file is empty, and the revlog stores a snapshot;
      - when there is a merge and both parents were identical.
      
      `hg debugindex -m | awk '$3=="0"{print}' | wc -l` gives 1917 of such entries
      in my clone of pypy, and 113 on my clone of mercurial.
      
      These empty revision may be located at the end of a sparse chain, and in some
      special cases may lead to read relatively large amounts of data for nothing.
      1bde8e8e
Loading