| 1 |
# Mercurial 6.7 (2024-03-15) |
| 2 |
|
| 3 |
## Mercurial 6.7.4 |
| 4 |
|
| 5 |
Exceptional release following a critical regression causing possible data loss |
| 6 |
in certain conditions: |
| 7 |
|
| 8 |
- inline-changelog: fix a critical bug in write_pending that delete data (3cf9e52f5e27) |
| 9 |
- inline-changelog: fix pending transaction visibility when splitting (1721d983dd6d) |
| 10 |
|
| 11 |
Other changes in this release: |
| 12 |
|
| 13 |
- exchange: fix locking to actually be scoped |
| 14 |
- chistedit: change action for the correct item |
| 15 |
- rust-status: sort the failed matches when printing them |
| 16 |
- hooks: add a prewlock and a prelock hooks |
| 17 |
- bookmark: fix remote bookmark deletion when the push is raced |
| 18 |
|
| 19 |
## Mercurial 6.7.3 |
| 20 |
|
| 21 |
⚠️ This release contains a bug causing possible data loss, use 6.7.4 instead. |
| 22 |
|
| 23 |
- setup: display return code information about failed `hg` call |
| 24 |
- bundle-spec: properly identify changegroup-less bundle |
| 25 |
- bundle-spec: properly parse boolean configuration as boolean |
| 26 |
- matchers: fix the bug in rust PatternMatcher that made it cut off early |
| 27 |
- match: fix the "visitdir" method on "rootfilesin" matchers |
| 28 |
- match: fix the rust-side bug in visit_children_set for rootfilesin matchers |
| 29 |
- match: strengthen visit_children_set invariant, Recursive means "all files" |
| 30 |
- wireprotoserver: ensure that output stream gets flushed on exception |
| 31 |
- re2: make errors quiet |
| 32 |
- dirstate-v2: add check of parent/child nodes being related when writing |
| 33 |
- dirstate-v2: check that root nodes are at the root before writing |
| 34 |
- rust-cpython: don't swallow the dirstate error message |
| 35 |
- rust: blanket implementation of Graph for Graph references |
| 36 |
- Various fixes to `admin::verify` |
| 37 |
|
| 38 |
## Mercurial 6.7.2 |
| 39 |
|
| 40 |
⚠️ This release contains a bug causing possible data loss, use 6.7.4 instead. |
| 41 |
|
| 42 |
Exceptional release following a large performance regression when cloning. |
| 43 |
|
| 44 |
We are setting up automated benchmarks to reduce the likelihood of regressions |
| 45 |
of the sort from happening in the future. |
| 46 |
|
| 47 |
- phases: avoid a potentially costly dictionary interation in some case |
| 48 |
- phases: update the phase set as we go during retract boundary |
| 49 |
- bundle2: make the "hgtagsfnodes" part advisory |
| 50 |
|
| 51 |
## Mercurial 6.7.1 |
| 52 |
|
| 53 |
⚠️ This release contains a bug causing possible data loss, use 6.7.4 instead. |
| 54 |
|
| 55 |
Exceptional release following a crash found in delta code that can be triggered |
| 56 |
with complex repository shapes. |
| 57 |
|
| 58 |
- delta-search: fix crash caused by unbound variable |
| 59 |
- sshpeer: fix path when handling invalid url exception |
| 60 |
- subrepo: fix normalizing paths with scheme |
| 61 |
|
| 62 |
## Mercurial 6.7 |
| 63 |
|
| 64 |
⚠️ This release contains a bug causing possible data loss, use 6.7.4 instead. |
| 65 |
|
| 66 |
As usual, a *lot* of patches don't make it to this list. |
| 67 |
|
| 68 |
### New Features |
| 69 |
|
| 70 |
- JSON templates can now use structured diffstat data |
| 71 |
- Support rhg status --rev --rev |
| 72 |
- The index for REVLOGv1 now has a Rust implementation |
| 73 |
- Improved `hg censor`'s output |
| 74 |
- censor: add a command flag to skip the head checks |
| 75 |
- censor: accept multiple revision in a single call |
| 76 |
- usage: add a `usage.repository-role` config |
| 77 |
- branchmap: use mmap for faster revbranchcache loading |
| 78 |
- crecord: enable search hotkeys (issue6834) |
| 79 |
- hg-core: separate timestamp and extra methods |
| 80 |
- annotate: limit output to range of lines |
| 81 |
- unbundle: faster computation of changed heads |
| 82 |
- Large improvements of some of the phases code (23950e39281f) |
| 83 |
- rust-filepatterns: export glob_to_re function |
| 84 |
|
| 85 |
### New Experimental Features |
| 86 |
|
| 87 |
- Introduce `hg admin::chainsaw-update` for automation and *advanced* users |
| 88 |
|
| 89 |
### Bug Fixes |
| 90 |
|
| 91 |
- templatekw: fix inconsistency of diffstat with diff.merge |
| 92 |
- The endless stream of Python 3 cleanups continues |
| 93 |
- Improved setup.py robustness |
| 94 |
- Improved test suite robustness |
| 95 |
- add: don't attempt to add back removed files unless explicitly listed |
| 96 |
- statprof: handle `lineno == None` in more cases |
| 97 |
- rust: fix cargo doc for hg-cpython |
| 98 |
- rust-python-index: don't panic on a corrupted index when calling from Python |
| 99 |
- debugindexstats: handle the lack of Rust support better |
| 100 |
- matchers: use correct method for finding index in vector |
| 101 |
- narrow: strip trailing `/` from manifest dir before matching it |
| 102 |
- cext: fix potential memory leaks of list items appended with PyList_Append |
| 103 |
- doc: document that labels must have a dot in them to have an effect |
| 104 |
- debugformat: fix formatting for compression level |
| 105 |
- obsutil: sort metadata before comparing in geteffectflag() |
| 106 |
- crecord: drop calls to `curses.endwin()` |
| 107 |
- rust-index: don't use mutable borrow for head-diff computation |
| 108 |
- rust-index: don't use mutable borrow to computed filtered heads |
| 109 |
|
| 110 |
|
| 111 |
### Backwards Compatibility Changes |
| 112 |
|
| 113 |
Users of the Rust extensions and/or `rhg` should be aware that the new Rust |
| 114 |
index can result in a performance degradation for push/pull on repositories |
| 115 |
- not* using `persistent-nodemap` (see `hg help config.format.use-persistent-nodemap`). |
| 116 |
|
| 117 |
If this is something that matters to you, please reach out to us as this is not |
| 118 |
an insurmountable obstacle. This is a choice base on the assumption that |
| 119 |
there are few people in this situation and our time should be spent on more |
| 120 |
pressing matters. |
| 121 |
|
| 122 |
### Internal API Changes |
| 123 |
|
| 124 |
- 62913:498017baa34b "cleanup: remove some code scheduled to be removed after 5.9" |
| 125 |
- 62914:88ef80210d67 "cleanup: drop `dirstate.is_changing_parent` deprecated since 6.5" |
| 126 |
- 62915:591845f89ada "cleanup: drop `path.pushloc` deprecated since 6.5" |
| 127 |
- 62916:d8f65fc72e7b "cleanup: drop deprecated config attribute on the revlog class" |
| 128 |
- 62917:5c9c41273367 "cleanup: turn `pathsuboption` deprecation warning into an error" |
| 129 |
- 62918:7b837fabc990 "cleanup: turn `wrappedfunction` deprecation warning into an error" |
| 130 |
- 62919:eda075d7b2ac "cleanup: turn `wrapfunction` deprecation warning into an error" |
| 131 |
- 62920:c845479fc64d "cleanup: drop the `bytes` compatibility for attribute related function" |
| 132 |
- 63464:dcaa2df1f688 "changelog: never inline changelog" |
| 133 |
- 63465:a93e52f0b6ff "changelog: disallow delayed write on inline changesets" |
| 134 |
- 63825:79cd29d598af "dirstate: make the `transaction` argument of `setbranch` mandatory" |
| 135 |
|
| 136 |
### Miscellaneous |
| 137 |
|
| 138 |
- perf: support --template on perf::phases |
| 139 |
- perf: add a --as-push option to perf::unbundle |
| 140 |
- debug: add a debug::unbundle command that simulate the unbundle from a push |
| 141 |
- Lots of refactorings to prepare for performance improvements and remove tech debt |