Debian Codegraph @

relnotes/5.5

raw
1 # Mercurial 5.5 (2020-08-01)
2
3
4 ## Mercurial 5.5 release
5
6 This is an overview of the 5.5 release.
7
8 ### New Features
9
10 - clonebundles can be annotated with the expected memory requirements
11 using the `REQUIREDRAM` option. This allows clients to skip
12 bundles created with large zstd windows and fallback to larger, but
13 less demanding bundles.
14
15 - The `phabricator` extension now provides more functionality of the
16 arcanist CLI like changing the status of a differential.
17
18 - Phases processing is much faster, especially for repositories with
19 old non-public changesets.
20
21
22 ### New Experimental Features
23
24 - The core of some hg operations have been (and are being)
25 implemented in rust, for speed. `hg status` on a repository with
26 300k tracked files goes from 1.8s to 0.6s for instance.
27 This has currently been tested only on linux, and does not build on
28 windows. See rust/README.rst in the mercurial repository for
29 instructions to opt into this.
30
31 - An experimental config `rewrite.empty-successor` was introduced to control
32 what happens when rewrite operations result in empty changesets.
33
34
35 ### Bug Fixes
36
37 - For the case when connected to a TTY, stdout was fixed to be line-buffered
38 on Python 3 (where it was block-buffered before, causing the process to seem
39 hanging) and Windows on Python 2 (where it was unbuffered before).
40
41 - Subversion sources of the convert extension were fixed to work on Python 3.
42
43 - Subversion sources of the convert extension now interpret the encoding of
44 URLs like Subversion. Previously, there were situations where the convert
45 extension recognized a repository as present but Subversion did not, and
46 vice versa.
47
48 - The empty changeset check of in-memory rebases was fixed to match that of
49 normal rebases (and that of the commit command).
50
51 - The push command now checks the correct set of outgoing changesets for
52 obsolete and unstable changesets. Previously, it could happen that the check
53 prevented pushing changesets which were already on the server.
54
55
56 ### Backwards Compatibility Changes
57
58 - Mercurial now requires at least Python 2.7.9 or a Python version that
59 backported modern SSL/TLS features (as defined in PEP 466), and that Python
60 was compiled against a OpenSSL version supporting TLS 1.1 or TLS 1.2
61 (likely this requires the OpenSSL version to be at least 1.0.1).
62
63 - The `hg perfwrite` command from contrib/perf.py was made more flexible and
64 changed its default behavior. To get the previous behavior, run `hg perfwrite
65 --nlines=100000 --nitems=1 --item='Testing write performance' --batch-line`.
66
67 - The absorb extension now preserves changesets with no file changes that can
68 be created by the commit command (those which change the branch name
69 compared to the parent and those closing a branch head).
70
71
72 ### Internal API Changes
73
74 - logcmdutil.diffordiffstat() now takes contexts instead of nodes.
75
76 - The `mergestate` class along with some related methods and constants have
77 moved from `mercurial.merge` to a new `mercurial.mergestate` module.
78
79 - The `phasecache` class now uses sparse dictionaries for the phase data.
80 New accessors are provided to detect if any non-public changeset exists
81 (`hasnonpublicphases`) and get the correponsponding root set
82 (`nonpublicphaseroots`).
83
84 - The `stdin`, `stdout` and `stderr` attributes of the `mercurial.pycompat`
85 module were removed. Instead, the attributes of same name from the
86 `mercurial.utils.procutil` module should be used, which provide more
87 consistent behavior across Python versions and platforms.
88
89
90 ### Unsorted
91
92 #### commands
93 - clonebundles: optional memory-requirement attribution
94 - commit: check branch change on to-be-committed changeset
95 - commit: tell user what to do with .hg/last-message.txt
96 - config: add option to control creation of empty successors during rewrite
97 - files: speed up 'hg files' when no flags change display
98 - push: another test for checks preventing pushing orphaness to a server
99 - push: test the checks preventing pushing orphaness to a server
100 - status: also support for 'traversedir' callback in the Rust fast-path
101 - status: match category text in the option description
102
103 #### core
104 - revlog: avoid hard-coded hash sizes
105 - revlog: fix excessive decref on tuple creation failure in parse_index2()
106 - ui: add option to timestamp status and diagnostic messages
107 - ui: fix Python 2.7 support for ui.timestamp-output
108
109 #### extensions
110 - rebase: add test case that shows that inmemory rebase does not preserve merges
111 - rebase: consider rewrite.empty-successor configuration
112 - rebase: correctly check for empty commit in in-memory mode
113 - rebase: fix regression in file change detection introduced by 0ecb3b11fcad
114
115 #### unsorted
116 - chg: suppress OSError in _restoreio() and add some logging (Bts:issue6330)
117 - chgserver: discard buffered output before restoring fds (Bts:issue6207)
118 - cmdserver: add option to not exit from message loop on SIGINT
119 - curses: do not initialize LC_ALL to user settings (Bts:issue6358)
120 - debian: support building a single deb for multiple py3 versions
121 - demandimport: ignore 'lzma' module for demandimport
122 - dispatch: handle late KeyboardInterrupt occurred in run()
123 - exchange: check actually missing revs for obsolete / unstable revs (Bts:issue6372)
124 - git: decode node IDs back into Python strings (Bts:issue6349)
125 - infinitepush: fix '{get,put}_args' formatting on Python 3
126 - nodemap: add a new mode option, with an optional "warn" value
127 - nodemap: gate the feature behind a new requirement
128 - phabupdate: allow revisions to be commandeered
129 - py3: fix crash when server address is 0.0.0.0 (Bts:issue6362)
130 - rhg: add Command trait for subcommands implemented by rhg
131 - rhg: add a limited 'rhg root' subcommand
132 - run-tests: find python binary on Python 3 (Bts:issue6361)
133 - rust-hg-cpython: update status bridge with the new 'traversedir' support
134 - rust-status: collect traversed directories if required
135 - rust-status: don't dispatch unknown file when traversing if not listing unknowns
136 - rust-status: improve documentation and readability
137 - sshpeer: make client print (likely) server errors on stderr (BC)
138 - sslutil: add FIXME about supportedprotocols possibly containing too many items
139 - sslutil: check for OpenSSL without TLS 1.0 support in one case
140 - sslutil: properly detect which TLS versions are supported by the ssl module
141 - sslutil: stop storing protocol and options for SSLContext in settings dict
142 - state: support validated declaration of nested unfinished ops
143 - test: redirect stderr so warning messages don't change output (Bts:issue6237)
144 - upgrade: support the --quiet flag
145 - upgrade: support upgrade and downgrade from persistent nodemap
146 - sshpeer: make client print (likely) server errors on stderr (BC)