| 1 |
#require test-repo py3exe |
| 2 |
$ . "$TESTDIR/helpers-testrepo.sh" |
| 3 |
|
| 4 |
$ cd $TESTDIR/.. |
| 5 |
$ if hg root 2> /dev/null >&2; then true; |
| 6 |
> else |
| 7 |
> echo 'skipped: cannot read the source repository'; |
| 8 |
> exit 80; |
| 9 |
> fi |
| 10 |
|
| 11 |
$ python3 contrib/relnotes 4.4 --stoprev 4.5 |
| 12 |
changeset 3398603c5621: unexpected block in release notes directive feature |
| 13 |
New Features |
| 14 |
============ |
| 15 |
|
| 16 |
revert --interactive |
| 17 |
-------------------- |
| 18 |
|
| 19 |
The revert command now accepts the flag --interactive to allow reverting only |
| 20 |
some of the changes to the specified files. |
| 21 |
|
| 22 |
Rebase with different destination per source revision |
| 23 |
----------------------------------------------------- |
| 24 |
|
| 25 |
Previously, rebase only supports one unique destination. Now "SRC" and |
| 26 |
"ALLSRC" can be used in rebase destination revset to precisely define |
| 27 |
destination per each individual source revision. |
| 28 |
|
| 29 |
For example, the following command could move some orphaned changesets to |
| 30 |
reasonable new places so they become no longer orphaned: |
| 31 |
|
| 32 |
hg rebase -r 'orphan()-obsolete()' -d 'max((successors(max(roots(ALLSRC) & |
| 33 |
::SRC)^)-obsolete())::)' |
| 34 |
|
| 35 |
Accessing hidden changesets |
| 36 |
--------------------------- |
| 37 |
|
| 38 |
Set config option 'experimental.directaccess = True' to access hidden |
| 39 |
changesets from read only commands. |
| 40 |
|
| 41 |
githelp extension |
| 42 |
----------------- |
| 43 |
|
| 44 |
The "githelp" extension provides the "hg githelp" command. This command |
| 45 |
attempts to convert a "git" command to its Mercurial equivalent. The extension |
| 46 |
can be useful to Git users new to Mercurial. |
| 47 |
|
| 48 |
Other Changes |
| 49 |
------------- |
| 50 |
|
| 51 |
* When interactive revert is run against a revision other than the working |
| 52 |
directory parent, the diff shown is the diff to *apply* to the working |
| 53 |
directory, rather than the diff to *discard* from the working copy. This is |
| 54 |
in line with related user experiences with 'git' and appears to be less |
| 55 |
confusing with 'ui.interface=curses'. |
| 56 |
|
| 57 |
* Let 'hg rebase' avoid content-divergence by skipping obsolete changesets |
| 58 |
(and their descendants) when they are present in the rebase set along with |
| 59 |
one of their successors but none of their successors is in destination. |
| 60 |
|
| 61 |
* hgweb now displays phases of non-public changesets |
| 62 |
|
| 63 |
* The "HGPLAINEXCEPT" environment variable can now include "color" to allow |
| 64 |
automatic output colorization in otherwise automated environments. |
| 65 |
|
| 66 |
* A new unamend command in uncommit extension which undoes the effect of the |
| 67 |
amend command by creating a new changeset which was there before amend and |
| 68 |
moving the changes that were amended to the working directory. |
| 69 |
|
| 70 |
* A '--abort' flag to merge command to abort the ongoing merge. |
| 71 |
|
| 72 |
* An experimental flag '--rev' to 'hg branch' which can be used to change |
| 73 |
branch of changesets. |
| 74 |
|
| 75 |
Backwards Compatibility Changes |
| 76 |
=============================== |
| 77 |
|
| 78 |
* "log --follow-first -rREV", which is deprecated, now follows the first |
| 79 |
parent of merge revisions from the specified "REV" just like "log --follow |
| 80 |
-rREV". |
| 81 |
|
| 82 |
* "log --follow -rREV FILE.." now follows file history across copies and |
| 83 |
renames. |
| 84 |
|
| 85 |
Bug Fixes |
| 86 |
========= |
| 87 |
|
| 88 |
Issue 5165 |
| 89 |
---------- |
| 90 |
|
| 91 |
Bookmark, whose name is longer than 255, can again be exchanged again between |
| 92 |
4.4+ client and servers. |
| 93 |
|
| 94 |
Performance Improvements |
| 95 |
======================== |
| 96 |
|
| 97 |
* bundle2 read I/O throughput significantly increased. |
| 98 |
|
| 99 |
* Significant memory use reductions when reading from bundle2 bundles. |
| 100 |
|
| 101 |
On the BSD repository, peak RSS during changegroup application decreased by |
| 102 |
~185 MB from ~752 MB to ~567 MB. |
| 103 |
|
| 104 |
API Changes |
| 105 |
=========== |
| 106 |
|
| 107 |
* bundlerepo.bundlerepository.bundle and |
| 108 |
bundlerepo.bundlerepository.bundlefile are now prefixed with an underscore. |
| 109 |
|
| 110 |
* Rename bundlerepo.bundlerepository.bundlefilespos to _cgfilespos. |
| 111 |
|
| 112 |
* dirstate no longer provides a 'dirs()' method. To test for the existence of |
| 113 |
a directory in the dirstate, use 'dirstate.hasdir(dirname)'. |
| 114 |
|
| 115 |
* bundle2 parts are no longer seekable by default. |
| 116 |
|
| 117 |
* mapping does not contain all template resources. use context.resource() in |
| 118 |
template functions. |
| 119 |
|
| 120 |
* "text=False|True" option is dropped from the vfs interface because of Python |
| 121 |
3 compatibility issue. Use "util.tonativeeol/fromnativeeol()" to convert EOL |
| 122 |
manually. |
| 123 |
|
| 124 |
* wireproto.streamres.__init__ no longer accepts a "reader" argument. Use the |
| 125 |
"gen" argument instead. |
| 126 |
|
| 127 |
* exchange.getbundlechunks() now returns a 2-tuple instead of just an |
| 128 |
iterator. |
| 129 |
|
| 130 |
|
| 131 |
=== commands === |
| 132 |
* amend: do not drop missing files (Bts:issue5732) |
| 133 |
* amend: do not take untracked files as modified or clean (Bts:issue5732) |
| 134 |
* amend: update .hgsubstate before committing a memctx (Bts:issue5677) |
| 135 |
* annotate: add support to specify hidden revs if directaccess config is set |
| 136 |
* bookmark: add methods to binary encode and decode bookmark values |
| 137 |
* bookmark: deprecate direct update of a bookmark value |
| 138 |
* bookmark: introduce a 'bookmarks' part |
| 139 |
* bookmark: introduce in advance a variant of the exchange test |
| 140 |
* bookmark: run 'pushkey' hooks after bookmark move, not 'prepushkey' |
| 141 |
* bookmark: use the 'bookmarks' bundle2 part to push bookmark update (Bts:issue5165) |
| 142 |
* bookmarks: add bookmarks to hidden revs if directaccess config is set |
| 143 |
* bookmarks: calculate visibility exceptions only once |
| 144 |
* bookmarks: display the obsfate of hidden revision we create a bookmark on |
| 145 |
* bookmarks: fix pushkey compatibility mode (Bts:issue5777) |
| 146 |
* bookmarks: use context managers for lock and transaction in update() |
| 147 |
* bookmarks: use context managers for locks and transaction in pushbookmark() |
| 148 |
* branch: add a --rev flag to change branch name of given revisions |
| 149 |
* branch: allow changing branch name to existing name if possible |
| 150 |
* clone: add support for storing remotenames while cloning |
| 151 |
* clone: use utility function to write hgrc |
| 152 |
* clonebundle: make it possible to retrieve the initial bundle through largefile |
| 153 |
* commands: use the new API to access hidden changesets in various commands |
| 154 |
* commandserver: restore cwd in case of exception |
| 155 |
* commandserver: unblock SIGCHLD |
| 156 |
* fileset: do not crash by unary negate operation |
| 157 |
* help: deprecate ui.slash in favor of slashpath template filter (Bts:issue5572) |
| 158 |
* log: allow matchfn to be non-null even if both --patch/--stat are off |
| 159 |
* log: build follow-log filematcher at once |
| 160 |
* log: don't expand aliases in revset built from command options |
| 161 |
* log: follow file history across copies even with -rREV (BC) (Bts:issue4959) |
| 162 |
* log: make "slowpath" condition slightly more readable |
| 163 |
* log: make opt2revset table a module constant |
| 164 |
* log: merge getlogrevs() and getgraphlogrevs() |
| 165 |
* log: remove temporary variable 'date' used only once |
| 166 |
* log: resolve --follow thoroughly in getlogrevs() |
| 167 |
* log: resolve --follow with -rREV in cmdutil.getlogrevs() |
| 168 |
* log: rewrite --follow-first -rREV like --follow for consistency (BC) |
| 169 |
* log: simplify 'x or ancestors(x)' expression |
| 170 |
* log: translate column labels at once (Bts:issue5750) |
| 171 |
* log: use revsetlang.formatspec() thoroughly |
| 172 |
* log: use revsetlang.formatspec() to concatenate list expression |
| 173 |
* log: use smartset.slice() to limit number of revisions to be displayed |
| 174 |
* merge: cache unknown dir checks (Bts:issue5716) |
| 175 |
* merge: check created file dirs for path conflicts only once (Bts:issue5716) |
| 176 |
* patch: add within-line color diff capacity |
| 177 |
* patch: catch unexpected case in _inlinediff |
| 178 |
* patch: do not break up multibyte character when highlighting word |
| 179 |
* patch: improve heuristics to not take the word "diff" as header (Bts:issue1879) |
| 180 |
* patch: reverse _inlinediff output for consistency |
| 181 |
* pull: clarify that -u only updates linearly |
| 182 |
* pull: hold wlock for the full operation when --update is used |
| 183 |
* pull: retrieve bookmarks through the binary part when possible |
| 184 |
* pull: store binary node in pullop.remotebookmarks |
| 185 |
* push: include a 'check:bookmarks' part when possible |
| 186 |
* push: restrict common discovery to the pushed set |
| 187 |
* revert: do not reverse hunks in interactive when REV is not parent (Bts:issue5096) |
| 188 |
* revert: support reverting to hidden cset if directaccess config is set |
| 189 |
|
| 190 |
=== core === |
| 191 |
* color: respect HGPLAINEXCEPT=color to allow colors while scripting (Bts:issue5749) |
| 192 |
* dirstate: add explicit methods for querying directories (API) |
| 193 |
* dispatch: abort if early boolean options can't be parsed |
| 194 |
* dispatch: add HGPLAIN=+strictflags to restrict early parsing of global options |
| 195 |
* dispatch: add option to not strip command args parsed by _earlygetopt() |
| 196 |
* dispatch: alias --repo to --repository while parsing early options |
| 197 |
* dispatch: fix early parsing of short option with value like -R=foo |
| 198 |
* dispatch: handle IOError when writing to stderr |
| 199 |
* dispatch: stop parsing of early boolean option at "--" |
| 200 |
* dispatch: verify result of early command parsing |
| 201 |
* exchange: return bundle info from getbundlechunks() (API) |
| 202 |
* filelog: add the ability to report the user facing name |
| 203 |
* localrepo: specify optional callback parameter to pathauditor as a keyword |
| 204 |
* revlog: choose between ifh and dfh once for all |
| 205 |
* revlog: don't use slicing to return parents |
| 206 |
* revlog: group delta computation methods under _deltacomputer object |
| 207 |
* revlog: group revision info into a dedicated structure |
| 208 |
* revlog: introduce 'deltainfo' to distinguish from 'delta' |
| 209 |
* revlog: rename 'rev' to 'base', as it is the base revision |
| 210 |
* revlog: separate diff computation from the collection of other info |
| 211 |
* revset: evaluate filesets against each revision for 'file()' (Bts:issue5778) |
| 212 |
* revset: parse x^:: as (x^):: (Bts:issue5764) |
| 213 |
* streamclone: add support for bundle2 based stream clone |
| 214 |
* streamclone: add support for cloning non append-only file |
| 215 |
* streamclone: also stream caches to the client |
| 216 |
* streamclone: define first iteration of version 2 of stream format |
| 217 |
* streamclone: move wire protocol status code from wireproto command |
| 218 |
* streamclone: rework canperformstreamclone |
| 219 |
* streamclone: tests phase exchange during stream clone |
| 220 |
* streamclone: use readexactly when reading stream v2 |
| 221 |
* templater: fix crash by empty group expression |
| 222 |
* templater: keep default resources per template engine (API) |
| 223 |
* templater: look up symbols/resources as if they were separated (Bts:issue5699) |
| 224 |
* transaction: register summary callbacks only at start of transaction (BC) |
| 225 |
* util: whitelist NTFS for hardlink creation (Bts:issue4580) |
| 226 |
* vfs: drop text mode flag (API) |
| 227 |
* wireproto: drop support for reader interface from streamres (API) |
| 228 |
|
| 229 |
=== extensions === |
| 230 |
* convert: restore the ability to use bzr < 2.6.0 (Bts:issue5733) |
| 231 |
* histedit: add support to output nodechanges using formatter |
| 232 |
* largefiles: add a 'debuglfput' command to put largefile into the store |
| 233 |
* largefiles: add support for 'largefiles://' url scheme |
| 234 |
* largefiles: allow to run 'debugupgraderepo' on repo with largefiles |
| 235 |
* largefiles: explicitly set the source and sink types to 'hg' for lfconvert |
| 236 |
* largefiles: modernize how capabilities are added to the wire protocol |
| 237 |
* largefiles: pay attention to dropped standin files when updating largefiles |
| 238 |
* rebase: add concludememorynode(), and call it when rebasing in-memory |
| 239 |
* rebase: add the --inmemory option flag; assign a wctx object for the rebase |
| 240 |
* rebase: add ui.log calls for whether IMM used, whether rebasing WCP |
| 241 |
* rebase: disable 'inmemory' if the rebaseset contains the working copy |
| 242 |
* rebase: do not bail on uncomitted changes if rebasing in-memory |
| 243 |
* rebase: do not update if IMM; instead, set the overlaywctx's parents |
| 244 |
* rebase: don't run IMM if running rebase in a transaction |
| 245 |
* rebase: don't take out a dirstate guard for in-memory rebase |
| 246 |
* rebase: drop --style option |
| 247 |
* rebase: enable multidest by default |
| 248 |
* rebase: exclude descendants of obsoletes w/o a successor in dest (Bts:issue5300) |
| 249 |
* rebase: fix for hgsubversion |
| 250 |
* rebase: pass the wctx object (IMM or on-disk) to merge.update |
| 251 |
* rebase: pass wctx to rebasenode() |
| 252 |
* rebase: rerun a rebase on-disk if IMM merge conflicts arise |
| 253 |
* rebase: switch ui.log calls to common style |
| 254 |
* rebase: use fm.formatlist() and fm.formatdict() to support user template |
| 255 |
|
| 256 |
=== hgweb === |
| 257 |
* hgweb: disable diff.noprefix option for diffstat |
| 258 |
* hgweb: drop support of browsers that don't understand <canvas> (BC) |
| 259 |
* hgweb: only include graph-related data in jsdata variable on /graph pages (BC) |
| 260 |
* hgweb: stop adding strings to innerHTML of #graphnodes and #nodebgs (BC) |
| 261 |
|
| 262 |
=== unsorted === |
| 263 |
* archive: add support to specify hidden revs if directaccess config is set |
| 264 |
* atomicupdate: add an experimental option to use atomictemp when updating |
| 265 |
* bundle2: don't use seekable bundle2 parts by default (Bts:issue5691) |
| 266 |
* bundle: allow bundlerepo to support alternative manifest implementations |
| 267 |
* changelog: introduce a 'tiprev' method |
| 268 |
* changelog: use 'tiprev()' in 'tip()' |
| 269 |
* completion: add support for new "amend" command |
| 270 |
* crecord: fix revert -ir '.^' crash caused by 3649c3f2cd |
| 271 |
* debugssl: convert port number to int (Bts:issue5757) |
| 272 |
* diff: disable diff.noprefix option for diffstat (Bts:issue5759) |
| 273 |
* evolution: make reporting of new unstable changesets optional |
| 274 |
* extdata: abort if external command exits with non-zero status (BC) |
| 275 |
* graphlog: add another graph node type, unstable, using character "*" (BC) |
| 276 |
* hgdemandimport: use correct hyperlink to python-bug in comments (Bts:issue5765) |
| 277 |
* httppeer: add support for tracing all http request made by the peer |
| 278 |
* identify: document -r. explicitly how to disable wdir scanning (Bts:issue5622) |
| 279 |
* lfs: register config options |
| 280 |
* match: do not weirdly include explicit files excluded by -X option |
| 281 |
* memfilectx: make changectx argument mandatory in constructor (API) |
| 282 |
* morestatus: don't crash with different drive letters for repo.root and CWD |
| 283 |
* outgoing: respect ":pushurl" paths (Bts:issue5365) |
| 284 |
* remove: print message for each file in verbose mode only while using '-A' (BC) |
| 285 |
* scmutil: don't try to delete origbackup symlinks to directories (Bts:issue5731) |
| 286 |
* sshpeer: add support for request tracing |
| 287 |
* subrepo: add config option to reject any subrepo operations (SEC) |
| 288 |
* subrepo: disable git and svn subrepos by default (BC) (SEC) |
| 289 |
* subrepo: disallow symlink traversal across subrepo mount point (SEC) |
| 290 |
* subrepo: extend config option to disable subrepos by type (SEC) |
| 291 |
* subrepo: handle 'C:' style paths on the command line (Bts:issue5770) |
| 292 |
* subrepo: use per-type config options to enable subrepos |
| 293 |
* svnsubrepo: check if subrepo is missing when checking dirty state (Bts:issue5657) |
| 294 |
* test-bookmarks-pushpull: stabilize for Windows |
| 295 |
* test-run-tests: stabilize the test (Bts:issue5735) |
| 296 |
* tests: show symlink traversal across subrepo mount point (SEC) |
| 297 |
* tr-summary: keep a weakref to the unfiltered repository |
| 298 |
* unamend: fix command summary line |
| 299 |
* uncommit: unify functions _uncommitdirstate and _unamenddirstate to one |
| 300 |
* update: fix crash on bare update when directaccess is enabled |
| 301 |
* update: support updating to hidden cset if directaccess config is set |
| 302 |
|
| 303 |
=== Behavior Changes === |
| 304 |
|
| 305 |
* extdata: abort if external command exits with non-zero status (BC) |
| 306 |
* graphlog: add another graph node type, unstable, using character "*" (BC) |
| 307 |
* hgweb: drop support of browsers that don't understand <canvas> (BC) |
| 308 |
* hgweb: only include graph-related data in jsdata variable on /graph pages (BC) |
| 309 |
* hgweb: stop adding strings to innerHTML of #graphnodes and #nodebgs (BC) |
| 310 |
* log: follow file history across copies even with -rREV (BC) (Bts:issue4959) |
| 311 |
* log: rewrite --follow-first -rREV like --follow for consistency (BC) |
| 312 |
* remove: print message for each file in verbose mode only while using '-A' (BC) |
| 313 |
* subrepo: disable git and svn subrepos by default (BC) (SEC) |
| 314 |
* transaction: register summary callbacks only at start of transaction (BC) |
| 315 |
|
| 316 |
=== Internal API Changes === |
| 317 |
|
| 318 |
* dirstate: add explicit methods for querying directories (API) |
| 319 |
* exchange: return bundle info from getbundlechunks() (API) |
| 320 |
* memfilectx: make changectx argument mandatory in constructor (API) |
| 321 |
* templater: keep default resources per template engine (API) |
| 322 |
* vfs: drop text mode flag (API) |
| 323 |
* wireproto: drop support for reader interface from streamres (API) |