Skip to content
Snippets Groups Projects
  1. Dec 08, 2017
  2. Dec 07, 2017
  3. Dec 08, 2017
  4. Dec 06, 2017
    • Jörg Sonnenberger's avatar
      phases: drop the list with phase of each rev, always comput phase sets · d1352633
      Jörg Sonnenberger authored
      Change the C implementation of phasecache.loadphaserevs to provide only
      the sets for draft and secret phase as well as the number of revisions
      seen.
      
      Change the pure Python implementation of the same functino to compute
      the sets instead of the list of phases for each revision.
      
      Change phasecache.phase to check the phase sets and assume public if the
      revision is in neither draft nor secret set. This is computationally
      slightly more expensive.
      
      Change phasecache.getrevset for public() based queries to compute the
      set of non-matching revisions and return the result as filtered
      fullreposet. A shortcut is taken when no draft or secret revision
      exists.
      
      Bump the module version for the changed interface contract.
      
      Overall, this saves around 16 Bytes per revision whenever the phasecache
      is used, for the test case in issue5691 it is around 3MB. getrevset()
      for a large repository is around 13% slower here, that seems an
      acceptable trade off. Performance impact for phase() should be similar.
      
      Differential Revision: https://phab.mercurial-scm.org/D1606
      d1352633
  5. Dec 08, 2017
  6. Dec 06, 2017
    • Augie Fackler's avatar
      ui: add diff.showfunc to tweakdefaults · 4caafe28
      Augie Fackler authored
      This is a little risky, as I think we can have some encoding weirdness
      crop up. showfunc also isn't the most robust feature, but it's still
      often useful context...
      
      Differential Revision: https://phab.mercurial-scm.org/D1610
      4caafe28
    • Augie Fackler's avatar
      ui: add curses interface to tweakdefaults · 03a83ace
      Augie Fackler authored
      This was part of the original proposal, and while *I* don't like the
      curses interface, most users anecdotally seem to greatly prefer it to
      plain text interfaces.
      
      Differential Revision: https://phab.mercurial-scm.org/D1609
      03a83ace
    • Boris Feld's avatar
      push: restrict common discovery to the pushed set · 483b5dd0
      Boris Feld authored
      This changeset make use of the ability of the set discovery to only search
      common changeset for a subset of the repository. Restricting that search to the
      pushed set avoid potential waste of time finding out the status of many
      unrelated related revision.
      
      Repository with many heads were especially badly affected by this. Here is an
      example of findcommonhead discovery for pushing 11 outgoing changeset on a
      repository with tens of thousand of unrelated heads. (discovery run over a ssh
      link to localhost).
      
      Before:
          queries: 92
          time:    44.1996s
      
      After:
          queries: 3
          time:    0.6938s
      
      A x63 speedup even with a network link without latency.
      483b5dd0
    • Boris Feld's avatar
      setdiscover: allow to ignore part of the local graph · f77121b6
      Boris Feld authored
      Currently, the push discovery first determines the full set of common nodes
      before looking into what changesets are outgoing. When pushing a specific
      subset, this can lead to pathological situations where we search for the status
      of thousand of local heads that are unrelated to the requested pushes.
      
      To fix this, we need to teach the discovery to ignores part of the graph. Most
      of the necessary pieces were already in place. This changeset just makes them
      available to higher level API and tests them.
      
      Change actually impacting pushes are coming in a later changeset.
      f77121b6
  7. Dec 07, 2017
  8. Sep 22, 2016
  9. Oct 22, 2017
  10. Dec 07, 2017
Loading