| 1 |
# Mercurial 4.7 (2018-08-01) |
| 2 |
|
| 3 |
|
| 4 |
## Mercurial 4.7 release |
| 5 |
|
| 6 |
### New Features |
| 7 |
|
| 8 |
- 'hg graft' now has a '--stop' flag to stop interrupted graft. |
| 9 |
|
| 10 |
- 'hg graft' now has an '--abort' flag which aborts the interrupted graft and |
| 11 |
rollbacks to state before the graft. |
| 12 |
|
| 13 |
- 'hg graft' now has a '--no-commit' mode (Bts:issue5631) |
| 14 |
|
| 15 |
- 'hg rebase' now supports '--confirm' and '--dry-run' flags. |
| 16 |
|
| 17 |
- 'hg export' now has a '-B/--bookmark' option to select a bookmarked branch. |
| 18 |
|
| 19 |
- The 'acl' extension now has support for bookmarks as well as branches. |
| 20 |
|
| 21 |
- 'word-diff' option is now officially supported, and enabled by ui.tweakdefaults or can be enabled by setting `diff.word-diff=True`. |
| 22 |
|
| 23 |
- The 'optimize-delta-parent-choice' is now enabled by default. It makes storing merge changesets more efficient by checking against which parent to make a delta. |
| 24 |
|
| 25 |
- 'sparse-revlog' option is now available. This option allows for a better storage and compression of the manifest for very big repositories at a minimal cost on day-to-day commands. |
| 26 |
|
| 27 |
### Backwards Compatibility Changes |
| 28 |
|
| 29 |
- The fileset expression may include untracked files by default. Use |
| 30 |
"tracked()" to explicitly filter out files not existing at the context |
| 31 |
revision. |
| 32 |
|
| 33 |
- graft: reuse --user, --date, a --log values in 'hg graft --continue' (BC) |
| 34 |
|
| 35 |
- revset: fix heads() order to always follow the input set (BC) |
| 36 |
|
| 37 |
- revset: make id() an empty set for ambiguous nodeid (BC) |
| 38 |
|
| 39 |
- revset: make id() to resolve node id prefix in unfiltered repo (BC) |
| 40 |
|
| 41 |
- templater: consistently join() string-like object per character (BC) |
| 42 |
|
| 43 |
|
| 44 |
### Bug Fixes |
| 45 |
|
| 46 |
- dispatch: fix exit code of unhandled exception recorded in blackbox log |
| 47 |
- merge: mark file gets as not thread safe (Bts:issue5933) |
| 48 |
- patch: don't separate \r and \n when colorizing diff output |
| 49 |
- sparse-revlog: implement algorithm to write sparse delta chains (Bts:issue5480) |
| 50 |
- obsolete: store user name and note in UTF-8 (Bts:issue5754) (BC) |
| 51 |
- phases: remove excessive optimization from newheads() (Bts:issue5939) |
| 52 |
- unlinkpath: make empty directory removal optional (Bts:issue5901) (Bts:issue5826) |
| 53 |
- revlog: suggest other parent when a parent was refused for a delta (Bts:issue5481) |
| 54 |
- templatefuncs: show hint if extdata source is evaluated to empty (Bts:issue5843) |
| 55 |
- bookmarks: cache reverse mapping (Bts:issue5868) |
| 56 |
- hgweb: strip trailing '/' in apppath before appending '/static/' (Bts:issue5943) |
| 57 |
|
| 58 |
### Performance improvements |
| 59 |
|
| 60 |
- fncache: avoid loading the filename cache when not actually modifying it. This makes commits to existing files faster. |
| 61 |
|
| 62 |
### New experimental features |
| 63 |
|
| 64 |
- grep: '--all-files -r "wdir()"' to search working-directory files, |
| 65 |
which is the default if tweakdefaults is on. |
| 66 |
|
| 67 |
### Other notable features |
| 68 |
|
| 69 |
- annotate, files: automatically populate fields referenced from template |
| 70 |
- bookmarks, files, status, tags: add support for log-like template keywords and functions |
| 71 |
- grep: deprecates '--all' flag in favor of '--diff' |
| 72 |
- serve: add --print-url option |
| 73 |
- shelve: pick the most recent shelve if none specified for --patch/--stat |
| 74 |
- status: add a config knob for setting default of --terse |
| 75 |
|
| 76 |
### API Changes |
| 77 |
|
| 78 |
- repo[x] is now more strict about its input, see https://www.mercurial-scm.org/repo/hg/file/4.6/mercurial/context.py#l380 |
| 79 |
|
| 80 |
- "sshserver()" no longer sets stdin and stdout to binary mode. |
| 81 |
|
| 82 |
- New context manager "ui.uninterruptable()" to mark portions of a command as |
| 83 |
potentially unsafe places to interrupt Mercurial with Control-C or similar. |
| 84 |
|
| 85 |
- New ui.makeprogress() that makes it easier to update progress. |
| 86 |
|
| 87 |
- changegroup: use progress helper in apply() (API) |
| 88 |
- cmdutil: drop deprecated log helper methods (API) |
| 89 |
- cmdutil: drop deprecated precursor of registrar.command (API) |
| 90 |
- cmdutil: remove deprecated _revertprefetch code (API) |
| 91 |
- context: drop support for looking up context by ambiguous changeid (API) |
| 92 |
- context: explicitly take diffopts in 'context.diff' (API) |
| 93 |
- context: make workingctx.matches() filter our removed files (API) |
| 94 |
- demandimport: make module ignores a set (API) |
| 95 |
- fileset: remove callexisting flag and mctx.existing() (API) |
| 96 |
- fileset: restrict getfileset() to not return a computed set (API) |
| 97 |
- merge: drop support for using updateresults as tuples (API) |
| 98 |
- obsolete: explode if metadata contains invalid UTF-8 sequence (API) |
| 99 |
- pycompat: export queue module instead of symbols in module (API) |
| 100 |
- revlog: do inclusive descendant testing (API) |
| 101 |
- revlog: replace descendant(b, a) by isdescendantrev(a, b) (API) |
| 102 |
- scmutil: move repair.stripbmrevset as scmutil.bookmarkrevs (API) |
| 103 |
- scmutil: remove deprecated revpairnodes method (API) |
| 104 |
- shortest: don't keep checking for longer prefix if node doesn't exist (API) |
| 105 |
- templatekw: drop deprecated showlist() and showdict() (API) |
| 106 |
- templater: drop extension point of engine classes (API) |
| 107 |
- update: use context manager for config override (API) |
| 108 |
- util: drop deprecated forwarding to dateutil, procutil, and stringutil (API) |
| 109 |
|
| 110 |
### More notes to sort into the above |
| 111 |
|
| 112 |
#### commands |
| 113 |
|
| 114 |
#### core |
| 115 |
- cmdutil: drop deprecated log helper methods (API) |
| 116 |
- cmdutil: drop deprecated precursor of registrar.command (API) |
| 117 |
- cmdutil: remove deprecated _revertprefetch code (API) |
| 118 |
- context: also accept diff option directly |
| 119 |
- context: drop support for looking up context by ambiguous changeid (API) |
| 120 |
- context: explicitly take diffopts in 'context.diff' (API) |
| 121 |
- context: make workingctx.matches() filter our removed files (API) |
| 122 |
- context: no longer accept diff options as dictionnary |
| 123 |
- dispatch: mask negative exit code recorded in blackbox log |
| 124 |
- dispatch: unify handling of None returned by a command function |
| 125 |
- filelog: don't crash on invalid copy metadata (Bts:issue5748) |
| 126 |
- hook: add support for disabling the shell to native command translation |
| 127 |
- hook: disable the shell to native command translation by default |
| 128 |
- revlog: _segmentspan computes the byte span of a segment |
| 129 |
- revlog: add function to slice chunk down to a given size |
| 130 |
- revlog: delete isdescendantrev() in favor of isancestorrev() |
| 131 |
- revlog: disallow setting uncompressed length to None |
| 132 |
- revlog: do inclusive descendant testing (API) |
| 133 |
- revlog: don't say "not found" on internal error |
| 134 |
- revlog: early return in _slicechunk when density is already good |
| 135 |
- revlog: early return in _slicechunk when span is already small enough |
| 136 |
- revlog: efficient implementation of 'descendant' |
| 137 |
- revlog: enforce chunk slicing down to a certain size |
| 138 |
- revlog: handle error from node lookup |
| 139 |
- revlog: handle errors from index_node() in nt_insert() and index_slice_del() |
| 140 |
- revlog: introduce a tiny mock of a revlog class |
| 141 |
- revlog: isgooddeltainfo takes the whole revinfo object |
| 142 |
- revlog: make chainbase cache its result for the correct revision |
| 143 |
- revlog: make getcandidaterevs more consistent about updating tested revs set |
| 144 |
- revlog: make isdescendantrev(a, b) check if a < b |
| 145 |
- revlog: make variable name 'd' more explicit in _isgooddeltainfo |
| 146 |
- revlog: postprocess chunk to slice them down to a certain size |
| 147 |
- revlog: replace descendant(b, a) by isdescendantrev(a, b) (API) |
| 148 |
- revlog: reuse 'descendant' implemention in 'isancestor' |
| 149 |
- revlog: use node tree (native code) for shortest() calculation |
| 150 |
- revlog: use radix tree also for matching keys shorter than 4 hex digits |
| 151 |
- revset: add partial support for ancestor(wdir()) |
| 152 |
- revset: fix heads() order to always follow the input set (BC) |
| 153 |
- revset: make id() an empty set for ambiguous nodeid (BC) |
| 154 |
- revset: pass in lookup function to matchany() (Bts:issue5879) |
| 155 |
- revset: use resolvehexnodeidprefix() in id() predicate (BC) |
| 156 |
- templater: make date wrapper support dot/map operations |
| 157 |
- transaction-summary: show phase changes statistics in pull/unbundle |
| 158 |
- worker: support more return types in posix worker |
| 159 |
|
| 160 |
#### extensions |
| 161 |
- convert: don't pass --no-files to "darcs show repo" command |
| 162 |
- histedit: add history-editing-backup config option |
| 163 |
- shelve: use more accurate description in conflict marker |
| 164 |
|
| 165 |
#### hgweb |
| 166 |
- hgweb: propagate http headers from ErrorResponse for web interface commands |
| 167 |
|
| 168 |
#### unsorted |
| 169 |
- aggressivemergedeltas: enabled the option by default |
| 170 |
- filemerge: support specifying a python function to custom merge-tools |
| 171 |
- fuzzutil: make it possible to use absl when C++17 isn't supported |
| 172 |
- mpatch: introduce a safeadd() helper to work around UB int overflow |
| 173 |
- mpatch: introduce a safesub() helper as well |
| 174 |
- phase: clarify the message about movement on command changeset |
| 175 |
- remotenames: enable the storage config option if extension is enabled |
| 176 |
- sparse-revlog: new requirement enabled with format.sparse-revlog |
| 177 |
- zstandard: pull in bug fixes from upstream 0.9.1 release (Bts:issue5884) |