| 1 |
# Mercurial 5.9 (2021-08-16) |
| 2 |
|
| 3 |
## New Features |
| 4 |
|
| 5 |
- `hg config` now has a `--source` option to show where each |
| 6 |
configuration value comes from. |
| 7 |
- Introduced a command (debug-repair-issue6528) to repair repositories affected |
| 8 |
by issue6528 where certain files would show up as modified even if they were |
| 9 |
clean due to an issue in the copy-tracing code. |
| 10 |
|
| 11 |
## New Experimental Features |
| 12 |
|
| 13 |
- A `changelogv2` format has been introduced. It is not ready for use yet, but |
| 14 |
will be used later to address some of the weaknesses of the current revlog |
| 15 |
format. |
| 16 |
- Initial experiment and support for `dirstatev2`, a new dirstate format that |
| 17 |
addresses some of the weaknesses of the current dirstate format. Python + C |
| 18 |
and Rust support are being implemented, but the Rust solution is the one |
| 19 |
currently getting the attention for performance. |
| 20 |
- Initial support for `rhg status`. `rhg` is the Rust wrapper executable for hg |
| 21 |
that shortcuts some commands for faster execution speed. |
| 22 |
|
| 23 |
## Bug Fixes |
| 24 |
|
| 25 |
- Fixed committing empty files with `narrow` |
| 26 |
- Allow overriding `pip`'s pep517 compliance to build C or Rust extensions |
| 27 |
- Fixed regression on outgoing email when not specifying revisions |
| 28 |
- Fixed a regression causing bookmarks to disappear when using Rust persistent nodemap |
| 29 |
- Fixed a regression (in 5.9.1) introduced in 5.9 when cloning repos with |
| 30 |
deep filenames |
| 31 |
- Fixed detection of directories becoming symlinks, but only when using the |
| 32 |
Rust extensions. |
| 33 |
- Fixed ignore and include not composing in the Rust status |
| 34 |
- `hg commit --interactive` now handles deselecting edits of a rename |
| 35 |
- Fixed a case where `hg evolve` gives different results when interrupted |
| 36 |
- Fixed a memory leak in phases computation |
| 37 |
- `histedit` and `shelve` don't swallow errors when updating the working copy |
| 38 |
anymore |
| 39 |
- Improve error message when detecting content-divergence with a hidden |
| 40 |
common predecessor |
| 41 |
- No longer re-order parents in filelog, see issue6533 |
| 42 |
- Fix revisions affected by issue6533 on the fly during exchange |
| 43 |
- Many Windows fixes for stability and py3 compatibility improvements |
| 44 |
- Many other miscellaneous fixes |
| 45 |
|
| 46 |
## Backwards Compatibility Changes |
| 47 |
|
| 48 |
|
| 49 |
## Internal API Changes |
| 50 |
|
| 51 |
The Dirstate API have been updated as the previous function leaked some |
| 52 |
internal details and did not distinguish between two important cases: "We are |
| 53 |
changing parent and need to adjust the dirstate" and "some command is changing |
| 54 |
which file is tracked". To clarify the situation: |
| 55 |
|
| 56 |
- the following functions have been deprecated, |
| 57 |
- `dirstate.add`, |
| 58 |
- `dirstate.normal`, |
| 59 |
- `dirstate.normallookup`, |
| 60 |
- `dirstate.merge`, |
| 61 |
- `dirstate.otherparent`, |
| 62 |
- `dirstate.remove`, |
| 63 |
- `dirstate.drop`, |
| 64 |
- `dirstateitem.__getitem__`, |
| 65 |
|
| 66 |
- these new functions are added for the "adjusting parents" use-case: |
| 67 |
- `dirstate.update_file`, |
| 68 |
- `dirstate.update_file_p1`, |
| 69 |
|
| 70 |
- these new function are added for the "adjusting wc file" use-case": |
| 71 |
- `dirstate.set_tracked`, |
| 72 |
- `dirstate.set_untracked`, |
| 73 |
- `dirstate.set_clean`, |
| 74 |
- `dirstate.set_possibly_dirty`, |
| 75 |
|
| 76 |
See inline documentation of the new functions for details. |
| 77 |
|
| 78 |
- Additionally, the following have been deprecated: |
| 79 |
- `urlutil.getpath` function |
| 80 |
- `localrepository.updatecaches`' `full` argument |
| 81 |
|
| 82 |
- The following have been removed: |
| 83 |
- `revlog.revlogio` has been removed |