Debian Codegraph @

relnotes/4.3

raw
1 # Mercurial 4.3 (2017-08-07)
2
3
4 ## Mercurial 4.3 release
5
6 ### Notable changes
7
8 - experimental amend extension providing the amend command
9 - experimental sparse extension
10 - Support for Python 2.6 has been dropped.
11 - Bundles created by the strip extension now store phase information. It will be restored when unbundling.
12 - The strip extension now removes relevant obsmarkers. If a backup requested (the default), the obsmarkers are stored in the backup bundle and will be restored when unbundling.
13 - `hg show work` (from the experimental `show` extension) now displays more info
14 - `hg show stack` is a new view for the current, in-progress changeset and others around it
15
16 ### Security fixes
17 #### CVE-2017-1000115
18
19 Mercurial's symlink auditing was incomplete prior to 4.3, and could be abused to write to files outside the repository.
20
21 #### CVE-2017-1000116
22
23 Mercurial was not sanitizing hostnames passed to ssh, allowing shell injection attacks by specifying a hostname starting with -oProxyCommand. This is also present in Git (CVE-2017-1000117) and Subversion (CVE-2017-9800), so please patch those tools as well if you have them installed.
24
25
26 ### Bug fixes
27
28 - archive: flag missing files as a dirty wdir() in the metadata file (BC)
29 - bundle: add optional 'tagsfnodecache' data to on disk bundle (Bts:issue5543)
30 - rebase: allow rebase even if some revisions need no rebase (BC) (Bts:issue5422)
31 - rebase: make sure merge state is cleaned up for no-op rebases (Bts:issue5494)
32 - diffstat: properly count lines starting in '--' or '++' (Bts:issue5479)
33 - checklink: degrade gracefully on posix when fs is readonly (Bts:issue5511)
34 - json: pass formatting options recursively
35 - revset: more predicates and commands support `wdir()` (Bts:issue4905, Bts:issue5438)
36 - test-obsolete-bundle-strip: do not include \n in filename (Bts:issue5586)
37 - streamclone: now correctly omits secret changesets (BC) (Bts:issue5589)
38 - debugcommands: issue warning when repo has secret changesets (Bts:issue5589)
39 - context: avoid writing outdated dirstate out (Bts:issue5584)
40 - fsmonitor: write state with wlock held and dirstate unchanged (Bts:issue5581)
41 - fsmonitor: don't write out state if identity has changed (Bts:issue5581)
42 - help: clarify ancestors() and descendants() include given set (Bts:issue5594)
43 - patch: rewrite reversehunks (Bts:issue5337)
44 - extensions: register functions always at loading extension (Bts:issue5601)
45 - revset: fix order of first() and last() members (Bts:issue5609)
46 - revlog: add an experimental option to mitigated delta issues (Bts:issue5480)
47 - followlines: join merge parents line ranges in blockdescendants() (Bts:issue5595)
48 - rebase: use scmutil.cleanupnodes (Bts:issue5606) (BC)
49 - sslutil: check for missing certificate and key files (Bts:issue5598)
50 - convert: transcode CVS log messages by specified encoding (Bts:issue5597)
51 - localrepo: cache types for filtered repos (Bts:issue5043)
52 - zsh_completion: add '--partial' flag to completions for 'import' (Bts:issue5618)
53 - parsers: fix invariant bug in find_deepest (Bts:issue5623)
54 - debugignore: eliminate inconsistencies with `hg status` (Bts:issue5222)
55 - demandimport: prefer loaded module over package attribute (Bts:issue5617)
56 - share: share 'cachevfs' with the source clone (Bts:issue5108)
57 - status: add a flag to terse the output (Bts:issue4119)
58
59 ### Improvements
60
61 - annotate: new experimental `--skip` option to skip revs
62 - annotate: restructure formatter output to be nested list (BC)
63 - bookmarks: warn about bookmark names that unambiguously resolve to a node (BC)
64 - bisect: improve option validation message
65 - cat: add formatter support
66 - clone: add a server-side option to disable full getbundles (pull-based clones)
67 - clone: warn when streaming was requested but couldn't be performed
68 - clonebundle: update hook arguments (BC)
69 - color: enable ANSI support on Windows 10
70 - commandserver: now uses selectors2 which should improve reliability
71 - commit: curses interactive commit works with line selections (Bts:issue5337)
72 - hgweb: improved styling of gitweb's search form
73 - hgweb: better UI for getting history of a range of lines
74 - identify: add template support
75 - revset: add depth limit to `ancestors()` and `descendants()` (Bts:issue5374)
76 - templater: better handling of template fragments defined in `[templates]` section
77 - add `ui.tweakdefaults` config knob
78 - add `successors` revset
79
80 ### Extensions
81
82 - new experimental "sparse" extension
83 - convert: transcode CVS log messages by specified encoding (Bts:issue5597)
84 - fetch: remove shorthand of --edit colliding against -e/-ssh in remoteopts (BC)
85 - fsmonitor: don't write out state if identity has changed (Bts:issue5581)
86 - fsmonitor: write state with wlock held and dirstate unchanged (Bts:issue5581)
87 - histedit: simplify removing of edited and temporary revisions (BC)
88 - histedit: remove moving bookmarks message on verbose (BC)
89 - keyword: make comparison webcommand suppress keyword expansion
90 - largefiles: avoid a crash when archiving a subrepo with largefiles disabled
91 - patchbomb: add `-B` option to select a bookmark
92 - rebase: add config to move rebase into a single transaction
93 - rebase: allow rebase even if some revisions need no rebase (BC) (Bts:issue5422)
94 - rebase: make sure merge state is cleaned up for no-op rebases (Bts:issue5494)
95 - rebase: use scmutil.cleanupnodes (Bts:issue5606) (BC)
96 - share: now correctly shares caches the source clone (Bts:issue5108)
97 - shelve: allow unlimited shelved changes per name
98 - show: commands.show.aliasprefix config option allows show views to be mass-aliased. e.g. setting this option to "s" enables "hg swork" as an alias for "hg show work"
99 - show: additional labels are shown in "work" view
100 - show: new "stack" view to show mutable changesets around the current one and their relationship to future changesets
101 - strip: now phase information is stored in backup bundle
102
103 ### Behavior changes
104
105 - amend: strip backup file name changed (BC)
106 - histedit: strip backup file name changed (BC)
107 - rebase: strip backup file name changed (BC)
108 - annotate: restructure formatter output to be nested list (BC)
109 - archival: flag missing files as a dirty wdir() in the metadata file (BC)
110 - bookmarks: warn about bookmark names that unambiguously resolve to a node (BC)
111 - clonebundle: update hook arguments (BC)
112 - commit: do not look up committemplate in template paths (BC)
113 - fetch: remove shorthand of --edit colliding against -e/-ssh in remoteopts (BC)
114 - formatter: open raw template file in binary mode (BC)
115 - graphlog: do not look up graphnodetemplate in template paths (BC)
116 - histedit: pass multiple nodes to strip (BC)
117 - histedit: remove moving bookmarks message on verbose (BC)
118 - histedit: unify strip backup files on success (BC)
119 - histedit: use scmutil.cleanupnodes (BC)
120 - match: don't print explicitly listed files with wrong case (BC)
121 - rebase: allow rebase even if some revisions need no rebase (BC) (Bts:issue5422)
122 - rebase: use scmutil.cleanupnodes (Bts:issue5606)
123 - revset: fix order of first/last members in compound expression (BC)
124 - revset: fix order of last() n members where n > 1 (BC)
125 - setup: drop support for Python 2.6 (BC)
126 - sparse: add a requirement when a repository uses sparse (BC)
127 - sparse: require [section] in sparse config files (BC)
128 - streamclone: consider secret changesets (BC) (Bts:issue5589)
129 - strip: include phases in bundle (BC)
130 - update: show the commit to which we updated in case of multiple heads (BC)
131 - util: raise ParseError when parsing dates (BC)
132
133 ### Internal API changes
134
135 - bundle2: record changegroup data in 'op.records' (API)
136 - changegroup: delete unused 'bundlecaps' argument (API)
137 - changegroup: deprecate 'getlocalchangroup' (API)
138 - changegroup: don't fail on empty changegroup (API)
139 - changegroup: let callers pass in transaction to apply() (API)
140 - changegroup: remove option to allow empty changegroup (API)
141 - changelog: make sure datafile is 00changelog.d (API)
142 - cmdutil: drop deprecated hack to pass file object to makefileobj() (API)
143 - cmdutil: pass templatespec tuple directly to changeset_templater (API)
144 - commands: move templates of common command options to cmdutil (API)
145 - context: inline makememctx (API)
146 - dirstate: expose a sparse matcher on dirstate (API)
147 - dirstate: mark {begin,end}parentchange as deprecated (API)
148 - extensions: prohibit registration of command without using @command (API)
149 - hidden: rename "revealedrevs" to "pinnedrevs" (API)
150 - localrepo: mark walk convenience method as deprecated (API)
151 - localrepo: remove unused addchangegroup() (API)
152 - match: implement __repr__() and update users (API)
153 - match: replace match class by match function (API)
154 - osutil: proxy through util (and platform) modules (API)
155 - registrar: move cmdutil.command to registrar module (API)
156 - repoview: rename '_getdynamicblockers' to 'revealedrevs' (API)
157 - revlog: rename constants (API)
158 - revset: make repo.anyrevs accept customized alias override (API)
159 - sparse: refactor activeprofiles into a generic function (API)
160 - templater: add simple interface for unnamed template (API)
161
162 ### Unprocessed script output below, please integrate this into the above
163 Note that there may be duplicates between the above and the below.
164
165 #### commands
166 - amend: new experimental extension providing the amend command
167 - bisect: simpler approach for option validation message
168 - bookmark: track bookmark changes at the transaction level
169 - bookmarks: fix check of hash-like name to not abort by ambiguous identifier
170 - config: use the 'config' method in 'configsuboptions'
171 - debugcommands: issue warning when repo has secret changesets (Bts:issue5589)
172 - debugignore: eliminate inconsistencies with 'hg status' (Bts:issue5222)
173 - export: map wctx.node() to 'ff...' node id (Bts:issue5438)
174 - help: clarify ancestors() and descendants() include given set (Bts:issue5594)
175 - log: add an extension hook-point in changeset_printer
176 - perf: add an option to `perfbranchmap` to purge the revbranch cache
177 - perf: add 'perfphases' command
178 - push: add a way to allow concurrent pushes on unrelated heads
179 - show: config option to register aliases for views
180 - status: add a flag to terse the output (Bts:issue4119)
181 - tag: make sure the repository is locked when tagging
182 - update: show the commit to which we updated in case of multiple heads (BC)
183 - verify: add a config option to skip certain flag processors
184 - verify: always check rawsize
185
186 #### core
187 - bundle: add config option to include phases
188 - bundle: add optional 'tagsfnodecache' data to on disk bundle (Bts:issue5543)
189 - check-concurrency: expose the feature as 'concurrent-push-mode'
190 - checklink: degrade gracefully on posix when fs is readonly (Bts:issue5511)
191 - context: avoid writing outdated dirstate out (Bts:issue5584)
192 - extensions: register functions always at loading extension (Bts:issue5601)
193 - followlines: join merge parents line ranges in blockdescendants() (Bts:issue5595)
194 - local-clone: also copy revs-branch-cache files
195 - local-clone: also copy tags related caches
196 - localrepo: cache types for filtered repos (Bts:issue5043)
197 - match: don't print explicitly listed files with wrong case (BC)
198 - md5sum: adapt for python 3 support
199 - parsers: fix invariant bug in find_deepest (Bts:issue5623)
200 - profile: support --profile in alias and abbreviated version (--prof)
201 - revlog: C implementation of delta chain resolution
202 - revlog: add an experimental option to mitigate delta issues (Bts:issue5480)
203 - revlog: micro-optimize the computation of hashes
204 - revlog: skeleton support for version 2 revlogs
205 - setup: drop support for Python 2.6 (BC)
206 - sslutil: check for missing certificate and key files (Bts:issue5598)
207 - test-obsolete-bundle-strip: do not include \n in filename (Bts:issue5586)
208 - transaction-summary: display the summary for all transactions
209 - ui: add support for a tweakdefaults knob
210 - util: raise ParseError when parsing dates (BC)
211 - zsh_completion: add '--partial' flag to completions for 'import' (Bts:issue5618)