| 1 |
# Mercurial 4.0 (2016-11-01) |
| 2 |
|
| 3 |
## Mercurial 4.0 release |
| 4 |
|
| 5 |
### Features |
| 6 |
- The following commands now also have experimental [[GenericTemplatingPlan#Specifying_a_format|formatter support]]: 'hg version', 'hg grep' and 'hg config' |
| 7 |
- New template keywords and functions: `termwidth`, `mod(a, b)`, `relpath(path)` |
| 8 |
- Basic arithmetic operations in template such as `termwidth - 10` |
| 9 |
- `follow()` revset takes new `startrev` parameter |
| 10 |
- Bash completion now allows skipping potentially expensive Cmd:status call for completing 'hg status' arguments, using $HGCOMPLETE_NOSTATUS environment variable |
| 11 |
|
| 12 |
### Improvements |
| 13 |
- A number of changes were made to move and copy tracking, to make sure move and copy information is not lost during commands like 'hg graft' |
| 14 |
- Compound revset expression is now properly ordered |
| 15 |
- Performance of client-side application of bundle data for generaldelta repos has been significantly improved. This makes 'hg clone', 'hg pull', and 'hg unbundle' operations faster. Cloning the Firefox repository now consumes 70+s less CPU time and completes over a minute faster (when not network or I/O bound). |
| 16 |
- The storage and transfer of changeset data has been optimized to improve read performance |
| 17 |
- Python 3 support has received a lot of improvements (but will take a lot of additional work) |
| 18 |
- zlib performance in hgweb is improved, and it's now possible to control zlib compression level using server.zliblevel option |
| 19 |
- Various improvements for largefiles extension related to executable bit tracking and removing files, better recovery from an interrupted state |
| 20 |
|
| 21 |
A full overview is available on WhatsNew. |