Debian Codegraph @

relnotes/6.4

raw
1 # Mercurial 6.4 (2023-03-23)
2
3 ## Mercurial 6.4.5
4
5 - re2: fix reporting of availability in `hg debuginstall`
6 - ui: fix crash in `hg paths` when pulled-delta-reuse-policy is in use
7 - path: display proper user facing value for pulled-delta-reuse-policy
8
9 ## Mercurial 6.4.4
10
11 - clonebundles: filter out invalid schemes instead of failing on them
12 - doc: format argument for date uses strftime format string (issue6818)
13 - test: make test-contrib-perf.t more robust
14 - revlog: fix a bug in revlog splitting
15 - bundles: clarify streaming v2 bundle usage
16 - delta-find: fix pulled-delta-reuse-policy=forced behavior
17 - dirstate: fall back to v1 if reading v2 failed
18 - revlog: avoid possible collision between directory and temporary index
19
20 ## Mercurial 6.4.3
21
22 - chg: declare environ (issue6812)
23 - chg: set CHGHG before connecting to command server
24 - delta-find: never do anything fancy when general delta is off
25 - delta-find: add a simple safeguard to prevent bad non-general-delta
26 - debug-delta: add minimal documentation for `devel.bundle-delta` option
27 - fix: highlight the required configuration and behavior of the fixer tools
28 - rhg: don't print copy source when --no-status is passed
29 - rhg: correctly relativize copy source path
30 - repo-upgrade: write new requirement before upgrading the dirstate
31 - backup: fix issue when the backup end up in a different directory
32
33 ## Mercurial 6.4.2
34
35 Exceptional bugfix release due to a corruption bug that happens when using
36 clonebundles on repositories with large files.
37
38 - revlog-split: make sure the self._indexfile attribute is reset (issue6811)
39
40
41 ## Mercurial 6.4.1
42
43 - rhg: fix a bug in path encoding
44 - rhg: don't crash on empty directory names in path_encode, just in case
45 - commands: correct documentation of hg serve’s --ipv6 options
46 - run-tests: remove obsolete coverage check and packaging import (issue6805)
47 - chg: populate CHGHG if not set
48 - match: sort patterns before compiling them into a regex
49 - match: match explicit file using a set
50 - rebase: do not cleanup the working copy when --dry-run is used (issue6802)
51 - sslutil: set context security level for legacy tls testing (issue6760)
52
53
54
55 ## Mercurial 6.4
56
57 ### New Features
58
59 - There is a new internal merge tool called `internal:union-other-first`.
60 It works like `internal:union` but add other side on top of local.
61 - Pullbundles are enabled by default
62 - delta-find: add a way to control the number of bases tested at the same time
63 - changelog-v2: add a configuration to disable rank computation
64 - debug: add an option to display statistic about a bundling operation
65 - debug: add an option to display statistic about a unbundling operation
66 - delta-find: add a delta-reuse policy that blindly accepts incoming deltas
67 - debug: add debug-revlog-stats command
68 - dirstate: add narrow support to `verify`
69 - verify: also check dirstate
70 - commit: add --draft option to use draft phase
71 - amend: add a --draft option to set phase to draft
72 - debug: add a config to abort update early
73 - rhg: implement checkexec to support weird filesystems
74 - debugshell: allow commands to be specified as a CLI argument
75 - rhg-files: add support for narrow when specifying a revision
76 - rust-narrow: enable narrow support for plain `rhg files`
77
78 ### Bug Fixes
79
80 Aside from the following (unordered) commits which made it through a manual filter, there are a bunch of typing improvements and fixes, removal of deprecated code and general code cleanup.
81
82 - lfs: improve an exception message for blob corruption detected on transfer
83 - revlog: use the user facing filename as the display_id for filelogs
84 - rust-status: query fs traversal metadata lazily
85 - shelve: add Shelf.changed_files for resolving changed files in a plugin
86 - demandimport: ensure lazyloaderex sets loader attributes (issue6725)
87 - typing: fix a syntax error in mercurial/cext/bdiff.pyi
88 - cffi: fix a bytes vs str issue on macOS when listing directories
89 - changelog-v2: fix the docket `struct`
90 - schemes: fix a broken check for drive letter conflicts
91 - worker: avoid reading 1 byte at a time from the OS pipe
92 - rust-narrow: fix loop that never loops
93 - setup: Ensure target directory exists with building rust extension
94 - dirstate: invalidate changes when parent-change fails
95 - dirstate: warn about non-explicitly rolledback parent-change
96 - dirstate: write dirstate on successful exit of changing_parents context
97 - largefile: make sure we hold the lock when updating the second dirstate
98 - dirstate: enforce holding the lock while doing any changes
99 - run-tests: stop ignoring venv-installed packages
100 - transaction: run abort callback in all cases
101 - transaction: quietly rollback if no other changes than temporary files
102 - debugrebuilddirstate: double check that no transaction is open
103 - dirstate: do not write an empty dirstate just for backup
104 - locking: take the `wlock` for the full `hg add` duration
105 - locking: take the `wlock` for the full `hg remove` duration
106 - locking: take the `wlock` for the full `hg forget` duration
107 - locking: take the `wlock` for the full `hg addremove` duration
108 - locking: grab the wlock before touching the dirstate in `perfdirstatewrite`
109 - locking: hold the wlock for the full duration of the "keyword demo"
110 - mq: properly take the wlock during the full qfold operation
111 - dirstate: invalidate the dirstate change on transaction failure
112 - status: fix post status writing
113 - status: fix post status invalidation
114 - dirstate: avoid transaction backup/restore if we do not hold the lock
115 - rollback: explicitly skip dirstate rollback when applicable
116 - dirstate-guard: remove the feature
117 - dirstate: make `restorebackup` more robust when it is a noop
118 - dirstate: generalize the dirstate's invalidation on transaction abort
119 - dirstate: detect potential fishy transaction patterns while changing
120 - mq: write the dirstate before stripping
121 - dirstate: explicitly backup the datafile
122 - localrepo: enforce a clean dirstate when the transaction open
123 - localrepo: "blindly" do a dirstate backup at the end of the transaction
124 - dirstate: remove the dedicated backup logic
125 - rhg: fix a bug in path_encode
126 - dirstate: invalidate on all exceptions
127 - large-files: make sure we write newly initialized standin file early
128 - dirstate: warn if dirty when starting an edition
129 - dirstate: track that changes are pending in a transaction
130 - dirstate: distinct transaction callback from largefile
131 - automv: lock the repository before searching for renames
132 - dirstate: only reload the dirstate when it may have changed
133 - dirstate: cleanup the `_map` property cache
134 - status: invalidate dirstate on LockError
135 - dirstate: check that dirstate is clean at the initial context opening
136 - dirstate: have `running_status` write the dirstate when holding the lock
137 - dirstate: have `running_status` warn when exiting with a dirty dirstate
138 - narrow: widden the lock context in `tracking`
139 - narrow: enforce that narrow spec is written within a transaction
140 - transaction: no longer explicitly cache phaseroots
141 - transaction: no longer explicitly cache bookmarks
142 - transaction: use the standard transaction mechanism to backup branch
143 - bundlerepo: handle changegroup induced phase movement in the associated method
144 - bundlerepo: apply phase data stored in the bundle instead of assuming `draft`
145 - config-item: declare undeclared path suboption
146 - narrow: read pending file when applicable
147 - rust: fix building on macOS (issue6801)
148 - run-tests: fix a crash when using the coverage options
149 - undo-files: also remove the undo.backupfiles
150 - undo-files: cleanup backup when cleaning undos
151 - undo-files: clean existing files up before writing new one
152 - undo-files: cleanup legacy files when applicable
153 - dirstate-v2: fix an incorrect handling of readdir errors
154 - rust: update zstd dependency
155 - rust: upgrade `rayon` dependency
156 - dirstate: fix the bug in [status] dealing with committed&ignored directories
157 - dirstate: fix a potential traceback when in `copy` and `rename`
158 - histedit: fix diff colors
159 - cext: fix for PyLong refactoring in CPython 3.12
160 - py3: fix for Python 3.12 emitting SyntaxWarning on invalid escape sequences
161 - statprof: with Python 3.12, lineno is (more) often None
162 - transaction: properly clean up backup file outside of .hg/store/
163 - transaction: raise on backup restoration error
164 - revlog: improve the robustness of the splitting process
165 - debugdeltachain: stop summing the same chain over and over
166 - url: don't ignore timeout for https connections
167 - py3: fix for Python 3.12 emitting SyntaxWarning on invalid escape sequences
168 - tests: accept a test output change in [tests/test-serve.t]
169 - rust: fix thread cap (for real this time)
170 - dirstate: try refreshing the changelog when parent are unknown
171 - hooks: invalidate the repo after the hooks
172
173 ### Backwards Compatibility Changes
174 - rust: upgrade supported Rust toolchain version
175 - rust: move all crates in the main workspace to edition 2021
176 - hg-core: upgrade `zstd` dependency
177 - hg-core: upgrade `clap` dependency
178 - hg-core: upgrade all remaining dependencies
179 - hg-cpython: upgrade dependencies
180 - rhg: upgrade `clap` dependency
181 - rhg: upgrade the remainder of the dependencies
182
183 ### Internal API Changes
184
185 - Many APIs around the dirstate have been made much stricter with regards to
186 locking and transaction handling
187 - Some dirstate APIs have been renamed/removed
188 - In both cases, you should get loud complaints in your tests if you do
189 something wrong.
190
191 ### Miscellaneous
192
193 - pullbundle support no longer requires setting a server-side option,
194 providing a .hg/pullbundles.manifest according to the syntax specified in
195 'hg help -e clonebundles' is enough.
196 - debug-delta-find: add a --source option
197 - delta-find: add debug information about reuse of cached data
198 - delta-find: set the default candidate chunk size to 10
199 - attr: vendor 22.1.0
200 - configitems: add a default value for "merge-tools.xxx.regappend"
201 - debugrevlog: display total stored information
202 - emitrevision: if we need to compute a delta on the fly, try p1 or p2 first
203 - emitrevision: consider ancestors revision to emit as available base
204 - find-delta: pass the cache-delta usage policy alongside the cache-delta
205 - delta-find: use a smarter object for snapshot caching
206 - delta-find: use sets instead of list in the snapshot cache
207 - delta-find: make sure we only use newer full snapshot as candidate
208 - delta-find: use a single snapshot cache when applying a group to an object
209 - bundleoperation: optionnaly record the `remote` that produced the bundle
210 - bundle: when forcing acceptance of incoming delta also accept snapshot
211 - bundle: emit full snapshot as is, without doing a redelta
212 - pathutil: slightly faster path audit in the common case
213 - merge: don't pay for pathconflicts if there are none
214 - merge: short-circuit the _checkfs loop upon getting ENOENT
215 - merge: disable the whole filesystem access loop if [_realfs] is false
216 - merge: cache the fs checks made during [_checkunknownfiles]
217 - rust: use `logging_timer` instead of `micro_timer`
218 - rust: run `cargo clippy`
219 - makefile: add `cargo clippy` to tests if cargo is available
220 - heptapod-ci: add `clippy` to the CI
221 - convert: use a priority queue for sorting commits, to make sorting faster
222 - delta-find: adjust the default candidate group chunk size
223 - delta-find: declare the "paths..*:pulled-delta-reuse-policy option