| 1 |
# Mercurial 5.7 (2021-01-29) |
| 2 |
|
| 3 |
This is an overview of the 5.7 release. |
| 4 |
## New Features |
| 5 |
|
| 6 |
- There is a new config section for templates used by hg commands. It called `[command-templates]`. Some existing config options have been deprecated in favor of config options in the new section. These are: |
| 7 |
`ui.logtemplate` to `command-templates.log`, |
| 8 |
|
| 9 |
`ui.graphnodetemplate` to `command-templates.graphnode`, |
| 10 |
|
| 11 |
`ui.mergemarkertemplate` to `command-templates.mergemarker`, |
| 12 |
|
| 13 |
`ui.pre-merge-tool-output-template` to `command-templates.pre-merge-tool-output`. |
| 14 |
|
| 15 |
- There is a new set of config options for the template used for the one-line commit summary displayed by various commands, such as `hg rebase`. The main one is `command-templates.oneline-summary`. That can be overridden per command with `command-templates.oneline-summary.<command>`, where `<command>` can be e.g. `rebase`. As part of this effort, the default format from `hg rebase` was reorganized a bit. |
| 16 |
|
| 17 |
- `hg purge` is now a core command using `--confirm` by default. |
| 18 |
|
| 19 |
- `hg diff` and `hg extdiff` now support `--from <rev>` and `--to <rev>` arguments as clearer alternatives to `-r <revs>`. `-r <revs>` has been deprecated. |
| 20 |
|
| 21 |
- The memory footprint per changeset during pull/unbundle operations has been further reduced. |
| 22 |
|
| 23 |
- There is a new internal merge tool called `internal:mergediff` (can be set as the value for the `merge` config in the `[ui]` section). It resolves merges the same was as `internal:merge` and `internal:merge3`, but it shows conflicts differently. Instead of showing 2 or 3 snapshots of the conflicting pieces of code, it shows one snapshot and a diff. This may be useful when at least one side of the conflict is similar to the base. The new marker style is also supported by "premerge" as `merge-tools.<tool>.premerge=keep-mergediff`. |
| 24 |
|
| 25 |
- External hooks are now called with `HGPLAIN=1` preset. This has the side effect of ignoring aliases, templates, revsetaliases, and a few other config options in any `hg` command spawned by the hook. The previous behavior can be restored by setting HGPLAINEXCEPT appropriately in the parent process. |
| 26 |
See `hg help environment` for the list of items, and how to set it. |
| 27 |
|
| 28 |
- The `branchmap` cache is updated more intelligently and can be significantly faster for repositories with many branches and changesets. |
| 29 |
|
| 30 |
- The `rev-branch-cache` is now updated incrementally whenever changesets are added. |
| 31 |
|
| 32 |
|
| 33 |
## New Experimental Features |
| 34 |
|
| 35 |
- `experimental.single-head-per-branch:public-changes-only` can be used restrict the single head check to public revision. This is useful for overlay repository that have both a publishing and non-publishing view of the same storage. |
| 36 |
|
| 37 |
|
| 38 |
## Backwards Compatibility Changes |
| 39 |
|
| 40 |
- `--force-lock` and `--force-wlock` options on `hg debuglock` command are renamed to `--force-free-lock` and `--force-free-wlock` respectively. |
| 41 |
|
| 42 |
|
| 43 |
## Internal API Changes |
| 44 |
|
| 45 |
- `changelog.branchinfo` is deprecated and will be removed after 5.8. It is superseded by `changelogrevision.branchinfo`. |