relnotes/next
author Raphaël Gomès <rgomes@octobus.net>
Mon, 20 Sep 2021 15:16:10 +0200
branchstable
changeset 48017 ff2304dd3ba9
parent 47978 bad66df931b5
child 48242 4d2ab365699e
permissions -rw-r--r--
patchbomb: fix traceback on outgoing when not specifying revisions A user reported that `hg email -n -o` raised with the following traceback: ``` ** unknown exception encountered, please report by visiting ** https://mercurial-scm.org/wiki/BugTracker ** Python 3.8.12 (default, Sep 13 2021, 22:12:54) [GCC 7.5.0] ** Mercurial Distributed SCM (version 5.9.1) ** Extensions loaded: patchbomb Traceback (most recent call last): File "/usr/pkg/bin/hg", line 61, in <module> dispatch.run() File "/usr/pkg/lib/python3.8/site-packages/mercurial/dispatch.py", line 144, in run status = dispatch(req) File "/usr/pkg/lib/python3.8/site-packages/mercurial/dispatch.py", line 250, in dispatch status = _rundispatch(req) File "/usr/pkg/lib/python3.8/site-packages/mercurial/dispatch.py", line 294, in _rundispatch ret = _runcatch(req) or 0 File "/usr/pkg/lib/python3.8/site-packages/mercurial/dispatch.py", line 470, in _runcatch return _callcatch(ui, _runcatchfunc) File "/usr/pkg/lib/python3.8/site-packages/mercurial/dispatch.py", line 480, in _callcatch return scmutil.callcatch(ui, func) File "/usr/pkg/lib/python3.8/site-packages/mercurial/scmutil.py", line 153, in callcatch return func() File "/usr/pkg/lib/python3.8/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc return _dispatch(req) File "/usr/pkg/lib/python3.8/site-packages/mercurial/dispatch.py", line 1273, in _dispatch return runcommand( File "/usr/pkg/lib/python3.8/site-packages/mercurial/dispatch.py", line 918, in runcommand ret = _runcommand(ui, options, cmd, d) File "/usr/pkg/lib/python3.8/site-packages/mercurial/dispatch.py", line 1285, in _runcommand return cmdfunc() File "/usr/pkg/lib/python3.8/site-packages/mercurial/dispatch.py", line 1271, in <lambda> d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) File "/usr/pkg/lib/python3.8/site-packages/mercurial/util.py", line 1886, in check return func(*args, **kwargs) File "/usr/pkg/lib/python3.8/site-packages/hgext/patchbomb.py", line 817, in email revs = _getoutgoing(repo, dest, revs) File "/usr/pkg/lib/python3.8/site-packages/hgext/patchbomb.py", line 537, in _getoutgoing safe_paths = [urlutil.hidepassword(p.rawloc) for p in paths] File "/usr/pkg/lib/python3.8/site-packages/hgext/patchbomb.py", line 537, in <listcomp> safe_paths = [urlutil.hidepassword(p.rawloc) for p in paths] File "/usr/pkg/lib/python3.8/site-packages/mercurial/utils/urlutil.py", line 501, in get_push_paths msg %= dest TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'NoneType' ``` This is due to patchbomb passing `[None]` in the `dests` parameter of the multi-paths outgoing function, we fix this in this change and add a non-regression test. Differential Revision: https://phab.mercurial-scm.org/D11456
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
42271
0ed293a3f00e releasenotes: add a file in which to record release notes
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff changeset
     1
== New Features ==
47978
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
     2
  * `debugrebuildfncache` now has an option to rebuild only the index files
47071
3e381eb557f3 config: add --source option to include source of value
Martin von Zweigbergk <martinvonz@google.com>
parents: 47014
diff changeset
     3
46254
c4b792fa109e branchmap: avoid ancestor computations in absence of non-continous branches
Joerg Sonnenberger <joerg@bec.de>
parents: 46237
diff changeset
     4
46999
035c06f9fddf relnode: document the move to `zstd` as default compression
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 46998
diff changeset
     5
== Default Format Change ==
035c06f9fddf relnode: document the move to `zstd` as default compression
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 46998
diff changeset
     6
035c06f9fddf relnode: document the move to `zstd` as default compression
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 46998
diff changeset
     7
These changes affects newly created repositories (or new clone) done with
47978
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
     8
Mercurial 6.0.
46999
035c06f9fddf relnode: document the move to `zstd` as default compression
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 46998
diff changeset
     9
47000
c3eee5ad1de9 relnote: document the use of persistent-nodemap by default for Rust build
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 46999
diff changeset
    10
44367
9dab3fa64325 copy: add experimental support for marking committed copies
Martin von Zweigbergk <martinvonz@google.com>
parents: 44365
diff changeset
    11
== New Experimental Features ==
44343
8561ad49915d revset: add a revset for parents in merge state
Martin von Zweigbergk <martinvonz@google.com>
parents: 44289
diff changeset
    12
47978
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    13
 * Added a new `web.full-garbage-collection-rate` to control performance. See
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    14
   de2e04fe4897a554b9ef433167f11ea4feb2e09c for more information
45191
fc54f52779dd relnotes: add release notes for relevant changes I did since the 5.4 release
Manuel Jacob <me@manueljacob.de>
parents: 45190
diff changeset
    15
fc54f52779dd relnotes: add release notes for relevant changes I did since the 5.4 release
Manuel Jacob <me@manueljacob.de>
parents: 45190
diff changeset
    16
== Bug Fixes ==
fc54f52779dd relnotes: add release notes for relevant changes I did since the 5.4 release
Manuel Jacob <me@manueljacob.de>
parents: 45190
diff changeset
    17
47978
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    18
 * `hg fix --working-dir` now correctly works when in an uncommitted merge state
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    19
 * `rhg` (Rust fast-path for `hg`) now supports the full config list syntax
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    20
 * `rhg` now parses some corner-cases for revsets correctly
48017
ff2304dd3ba9 patchbomb: fix traceback on outgoing when not specifying revisions
Raphaël Gomès <rgomes@octobus.net>
parents: 47978
diff changeset
    21
 * `hg email -o` now works again when not mentioning a revision
47978
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    22
 * Lots of Windows fixes
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    23
 * Lots of miscellaneous other fixes
45189
045f5361bd12 relnotes: make spacing before new section consistent
Manuel Jacob <me@manueljacob.de>
parents: 45169
diff changeset
    24
42271
0ed293a3f00e releasenotes: add a file in which to record release notes
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff changeset
    25
== Backwards Compatibility Changes ==
0ed293a3f00e releasenotes: add a file in which to record release notes
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff changeset
    26
44396
acbfa31cfaf2 debugmergestate: make templated
Martin von Zweigbergk <martinvonz@google.com>
parents: 44392
diff changeset
    27
42271
0ed293a3f00e releasenotes: add a file in which to record release notes
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff changeset
    28
== Internal API Changes ==
0ed293a3f00e releasenotes: add a file in which to record release notes
Martin von Zweigbergk <martinvonz@google.com>
parents:
diff changeset
    29
47978
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    30
The following functions have been removed:
47758
ec77f709495c relnotes: document the change in the dirstate API
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47071
diff changeset
    31
47978
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    32
  * `dirstate.normal`
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    33
  * `dirstate.normallookup`
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    34
  * `dirstate.otherparent`
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    35
  * `dirstate.add`
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    36
  * `dirstate.remove`
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    37
  * `dirstate.drop`
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    38
  * `dirstate.__getitem__`
47758
ec77f709495c relnotes: document the change in the dirstate API
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47071
diff changeset
    39
47978
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    40
Miscellaneous:
47758
ec77f709495c relnotes: document the change in the dirstate API
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47071
diff changeset
    41
47978
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    42
 * `wireprotov1peer`'s `batchable` is now a simple function and not a generator
bad66df931b5 relnotes: update next
Raphaël Gomès <rgomes@octobus.net>
parents: 47758
diff changeset
    43
   anymore