Skip to content
Snippets Groups Projects
  1. Dec 02, 2020
    • Kyle Lippincott's avatar
      statprof: fix off-by-one-line error in output · 068307b638f4
      Kyle Lippincott authored
      martinvonz claims they thought that this was intentional, but couldn't remember
      the reasoning for it. I can't understand why it would be preferable, and I
      didn't see anything in the comments in the file about why this would be useful,
      so I'm hopefully not breaking anything by "fixing" it.
      
      ### Old output
      
      ```
      | 100.0%  0.01s  dispatch.py:    run               line 43:  dispatch.run()
      | 100.0%  0.01s  dispatch.py:    dispatch          line 115:  status = dispatch(req)
      | 100.0%  0.01s  dispatch.py:    _runcatch         line 266:  ret = _runcatch(req) or 0
      | 100.0%  0.01s  dispatch.py:    _callcatch        line 442:  return _callcatch(ui, _runc...
      | 100.0%  0.01s  scmutil.py:     callcatch         line 451:  return scmutil.callcatch(ui...
      | 100.0%  0.01s  dispatch.py:    _runcatchfunc     line 155:  return func()
      | 100.0%  0.01s  dispatch.py:    _dispatch         line 432:  return _dispatch(req)
      | 100.0%  0.01s  hg.py:          repository        line 1179:  repo = hg.repository(
      | 100.0%  0.01s  hg.py:          _peerorrepo       line 221:  peer = _peerorrepo(
      | 100.0%  0.01s  util.py:        __getattribute__  line 188:  obj = _peerlookup(path).ins...
      | 100.0%  0.01s  localrepo.py:   makelocalrepositoryline 3227:  return makelocalrepository(...
      | 100.0%  0.01s  localrepo.py:   __init__          line 683:  return cls(
      | 100.0%  0.01s  util.py:        __getattribute__  line 1262:  self._extrafilterid = repov...
      | 100.0%  0.01s  <frozen importlib._bootstrap_external>: exec_moduleline          245:  self.__spec__.loader.exec_m...
      | 100.0%  0.01s  <frozen importlib._bootstrap_external>: get_codeline       779:
      | 100.0%  0.01s  <frozen importlib._bootstrap_external>: path_statsline         868:
      | 100.0%  0.01s  <frozen importlib._bootstrap_external>: _path_statline         1012:
      ```
      
      ### New output
      
      ```
      | 100.0%  0.01s  hg:             <module>          line 43:  dispatch.run()
      | 100.0%  0.01s  dispatch.py:    run               line 115:  status = dispatch(req)
      | 100.0%  0.01s  dispatch.py:    dispatch          line 266:  ret = _runcatch(req) or 0
      | 100.0%  0.01s  dispatch.py:    _runcatch         line 442:  return _callcatch(ui, _runc...
      | 100.0%  0.01s  dispatch.py:    _callcatch        line 451:  return scmutil.callcatch(ui...
      | 100.0%  0.01s  scmutil.py:     callcatch         line 155:  return func()
      | 100.0%  0.01s  dispatch.py:    _runcatchfunc     line 432:  return _dispatch(req)
      | 100.0%  0.01s  dispatch.py:    _dispatch         line 1179:  repo = hg.repository(
      | 100.0%  0.01s  hg.py:          repository        line 221:  peer = _peerorrepo(
      | 100.0%  0.01s  hg.py:          _peerorrepo       line 188:  obj = _peerlookup(path).ins...
      | 100.0%  0.01s  localrepo.py:   instance          line 3227:  return makelocalrepository(...
      | 100.0%  0.01s  localrepo.py:   makelocalrepositoryline 683:  return cls(
      | 100.0%  0.01s  localrepo.py:   __init__          line 1262:  self._extrafilterid = repov...
      | 100.0%  0.01s  util.py:        __getattribute__  line 245:  self.__spec__.loader.exec_m...
      | 100.0%  0.01s  <frozen importlib._bootstrap_external>: exec_moduleline          779:
      | 100.0%  0.01s  <frozen importlib._bootstrap_external>: get_codeline       868:
      | 100.0%  0.01s  <frozen importlib._bootstrap_external>: path_statsline         1012:
      | 100.0%  0.01s  <frozen importlib._bootstrap_external>: _path_statline         87:
      ```
      
      Differential Revision: https://phab.mercurial-scm.org/D9510
      068307b638f4
  2. Dec 03, 2020
  3. Dec 02, 2020
  4. Nov 27, 2020
  5. Nov 23, 2020
    • Pulkit Goyal's avatar
      share: show warning if share is outdated while source supports share-safe · 49b4ab1d9f5e
      Pulkit Goyal authored
      Previous patches in the series and some which are already committed implements
      share safe functionality where config and requirements will be shared too.
      
      Rolling this feature has a problem that existing shares may never upgrade as
      they will never learn about the new config. To help the transition, we show a
      warning message if the share source supports share-safe mechanism. This provides
      the source repo ability to upgrade and pass on the message to shares that you
      should reshare and upgrade too.
      
      Differential Revision: https://phab.mercurial-scm.org/D9369
      49b4ab1d9f5e
  6. Oct 16, 2020
  7. Jun 25, 2020
  8. Nov 30, 2020
  9. Nov 28, 2020
  10. Nov 30, 2020
    • Kyle Lippincott's avatar
      match: skip walking up the directory hierarchy if the number of pats are small · c4c7a6b61146
      Kyle Lippincott authored
      Previously, we would receive a path like abc/def/ghi and "walk up" the directory
      hierarchy, checking abc/def, abc, and `b''` to see if they were in the set of
      prefixes that this matcher covered. We did this indiscriminately - we generated
      all of these paths even if the set of prefixes the matcher covered was
      completely empty, which is the case for a lot of repos at my company (the narrow
      matcher we use is usually non-recursive).
      
      This brings the time for a rebase in one of my repos from 12.20s to 10.87s. In
      this particular repo, this is entirely due to the `len(prefix_set) == 0` check,
      as I do not have any recursive patterns in the narrowspec.
      
      Differential Revision: https://phab.mercurial-scm.org/D9488
      c4c7a6b61146
  11. Dec 01, 2020
  12. Nov 30, 2020
  13. Dec 01, 2020
  14. Nov 30, 2020
  15. Nov 28, 2020
  16. Nov 30, 2020
  17. Nov 27, 2020
  18. Nov 23, 2020
  19. Nov 20, 2020
  20. Nov 26, 2020
  21. Nov 30, 2020
  22. Nov 26, 2020
    • Matt Harbison's avatar
      packaging: add pygit2 to the py3 Windows installers · d26497811ed9
      Matt Harbison authored
      This is needed to be able to use the git extension.
      
      The extension no longer complains about the library being not installed, but
      `hg log -r .` on a repo that works in WSL yielded a TypeError:
      
            ...
            File "mercurial.hg", line 188, in _peerorrepo
            File "mercurial.localrepo", line 3224, in instance
            File "mercurial.localrepo", line 623, in makelocalrepository
            File "hgext.git", line 117, in _makestore
            File "hgext.git", line 48, in __init__
          TypeError: Repository unable to unpack backend.
      
      Differential Revision: https://phab.mercurial-scm.org/D9405
      d26497811ed9
  23. Nov 30, 2020
  24. Nov 23, 2020
Loading