Debian Codegraph @

relnotes/6.0

raw
1 # Mercurial 6.0 (2021-11-17)
2
3 This release was delayed due to the ongoing efforts to improve robustness of the UX on Windows, especially on Python 3.
4
5 This was supposed to be the last release to support Python 2, but it was instead decided to wait until 6.2. 6.1 is the last release to support Python 2.
6
7 ## Mercurial 6.0.3
8
9 - Fix an infinite loop in edge cases of the pure Python dirstate-v2 packer
10 - Fix a small race condition with deleted files in Rust-augmented status
11 - Small improvement to Python 3.11 compatibility
12 - Fixed some typos in help messages that caused missing sections
13 - Centos -> Rockylinux packaging
14
15
16 ## Mercurial 6.0.2
17
18 - Fix `hg incoming` and `hg outgoing` with remote subrepos on Windows
19 - Fix Rust build on MacOS
20 - Fix a (15 year old?) bug where some data loss could happen in a very tight race window (f38ae2d7390e + ccd9cb73125c)
21 - Remove support for running `hg unamend` on merge changesets at it was never actually implemented
22 - Fix stream-clone requirements filtering which caused some stream-clones to be unusable from an older version of Mercurial
23 - Rename dirstate-v2 configuration name from `exp-rc-dirstate-v2` to `use-dirstate-v2`. This was overlooked in `6.0`, the old name will be kept as an alias for compatibility.
24 - Fix a bug where the branchmap could point to uncommitted data
25
26 ## Mercurial 6.0.1
27
28 - Improve documentation around Rust (see `hg help rust`) and rust-related actions
29 - Improve upgrade/downgrade edge cases for `dirstate-v2`
30 - Make the test suite nicer to big-endian platforms
31 - Make the test suite nicer to NetBSD
32 - Fix a performance regression on fsmonitor (issue6612)
33 - Add fixes for Python 3.10
34 - Fix a deadlock when using `sparse` and `share-safe` together
35
36 ## Mercurial 6.0
37 ### New Features
38 - `debugrebuildfncache` now has an option to rebuild only the index files
39 - a new `bookmarks.mode` path option have been introduced to control the bookmark update strategy during exchange with a peer. See `hg help config` and look for section `paths` for details.
40 - the new `bookmarks.mode` paths option supports the new mode `mirror`. See `hg help config` and look for section `paths` for details.
41 - more commands support detailed exit codes when config `ui.detailed-exit-codes` is enabled
42
43 ### Default Format Change
44
45 ### New Experimental Features
46
47 - '''Major feature''': version 2 of the dirstate is available (the first version is as old as Mercurial itself). It allows for much faster working copy inspection (status, diff, commit, update, etc.) and richer information (symlink and exec info on Windows, etc.). The format has been frozen with room for some future evolution and the current implementations (Python, Python + C, Python + Rust or pure Rust) should be compatible with any future change or optimization that the format allows. You can get more information [[https://www.mercurial-scm.org/repo/hg/file/tip/mercurial/helptext/internals/dirstate-v2.txt | in the internal documentation]]
48 - Added a new `web.full-garbage-collection-rate` to control performance. See
49 de2e04fe4897a554b9ef433167f11ea4feb2e09c for more information
50 - Added a new `histedit.later-commits-first` option to affect the ordering of commits in `chistedit` to match the order in `hg log -G`. It will affect the text-based version before graduating from experimental.
51
52 ### Bug Fixes
53
54 - `hg fix --working-dir` now correctly works when in an uncommitted merge state
55 - Unintentional duplicated calls to `hg fix`'s internals were removed, making it potentially much faster
56 - `rhg cat` can be called without a revision
57 - `rhg cat` can be called with the `.` revision
58 - `rhg cat` is more robust than before with regards to edge cases. Some still remain like a tag or bookmark that is ambiguous with a nodeid prefix, only nodeids (prefixed or not) are supported as of now.
59 - `rhg cat` is even faster
60 - `rhg` (Rust fast-path for `hg`) now supports the full config list syntax
61 - `rhg` now parses some corner-cases for revsets correctly
62 - Fixed an `fsmonitor` on Python 3 during exception handling
63 - Lots of Windows fixes
64 - Lots of miscellaneous other fixes
65 - Removed a CPython-specific compatibility hack to improve support for alternative Python implementations
66 - Added a compatibility fix for Python 3.11
67
68 ### Backwards Compatibility Changes
69
70
71 ### Internal API Changes
72
73 The following functions have been removed:
74
75 - `dirstate.normal`
76 - `dirstate.normallookup`
77 - `dirstate.otherparent`
78 - `dirstate.add`
79 - `dirstate.addfile`
80 - `dirstate.remove`
81 - `dirstate.drop`
82 - `dirstate.dropfile`
83 - `dirstate.__getitem__`
84 - `dirstatemap.nonnormalentries`
85 - `dirstatemap.nonnormalset`
86 - `dirstatemap.otherparentset`
87 - `dirstatemap.non_normal_or_other_parent_paths`
88 - `dirstateitem.dm_nonnormal`
89 - `dirstateitem.dm_otherparent`
90 - `dirstateitem.merged_removed`
91 - `dirstateitem.from_p2`
92 - `dirstateitem.merged`
93 - `dirstateitem.new_merged`
94 - `dirstateitem.new_added`
95 - `dirstateitem.new_from_p2`
96 - `dirstateitem.new_possibly_dirty`
97 - `dirstateitem.new_normal`
98 - `dirstateitem.from_p2_removed`
99
100 Miscellaneous:
101
102 - `wireprotov1peer`'s `batchable` is now a simple function and not a generator
103 anymore
104 - The Rust extensions (and by extension the experimental `rhg status`) only use a tree-based dirstate in-memory, even when using dirstate-v1. See bf8837e3d7cec40fe649c47163a3154dda03fa16 for more details
105 - The Rust minimum supported version is now 1.48.0 in accordance with out policy of keeping up with Debian stable
106 - The test harness plays nicer with the NixOS sandbox
107 - The test harness plays nicer with NetBSD
108 - Improved rpm packaging