| 1 |
# Mercurial 4.9 (2019-01-08) |
| 2 |
|
| 3 |
|
| 4 |
## Mercurial 4.9 release |
| 5 |
|
| 6 |
This is an overview of [[WhatsNew#Mercurial_4.9_.282019-02-01.29|4.9 release]]. |
| 7 |
|
| 8 |
### Security Fixes |
| 9 |
|
| 10 |
It was possible to use symlinks and subrepositories to defeat Mercurial's path-checking logic and write files outside a repository. This has been fixed. Users on older versions can either disable subrepositories with |
| 11 |
{{{ |
| 12 |
[subrepos] |
| 13 |
allowed = false |
| 14 |
}}} |
| 15 |
in their configuration or by ensuring any cloned repositories don't contain malicious symlinks. |
| 16 |
|
| 17 |
### New Features |
| 18 |
|
| 19 |
- 'hg histedit' will now present a curses UI if curses is available and 'ui.interface' or 'ui.interface.histedit' is set to 'curses'. |
| 20 |
- The 'sparse-revlog' delta strategy is enabled by default for new repositories. |
| 21 |
See `hg help config.format.sparse-revlog` for details. |
| 22 |
|
| 23 |
|
| 24 |
### New Experimental Features |
| 25 |
|
| 26 |
|
| 27 |
### Other Notable Features |
| 28 |
|
| 29 |
- New `rewrite.update-timestamp=True` option to update the commit timestamp on history editing (e.g. amend.) |
| 30 |
- New `ui.message-output=stderr` option for scripting, which prevents status messages from interleaved. |
| 31 |
- New `rootglob:` filename pattern for a glob that is rooted at the root of the repository. |
| 32 |
See `hg help patterns` and `hg help hgignore` for details. |
| 33 |
- Some more reimplementation of ancestry algorithms in Rust for better performance. |
| 34 |
|
| 35 |
### Bug Fixes |
| 36 |
|
| 37 |
|
| 38 |
### Backwards Compatibility Changes |
| 39 |
|
| 40 |
- Boolean options passed to the logtoprocess extension are now formatted as "0" or "1" instead of "None", "False", or "True". |
| 41 |
|
| 42 |
- The logtoprocess extension no longer supports invalid "ui.log()" arguments. A log message is always formatted and passed in to the "$MSG1" environment variable. |
| 43 |
|
| 44 |
|
| 45 |
### Internal API Changes |
| 46 |
|
| 47 |
- Status messages may be sent to a dedicated stream depending on configuration. Don't use "ui.status()", etc. as a shorthand for conditional writes. Use "ui.write()" for data output. |
| 48 |
|
| 49 |
- Add 'exthelper' class to simplify extension writing by allowing functions, commands, and configitems to be registered via annotations. The previous APIs are still available for use. |
| 50 |
|
| 51 |
- The extension hook "extsetup" without a 'ui' argument has been deprecated, and will be removed in the next version. Add a 'ui' argument to avoid the deprecation warning. |