##// END OF EJS Templates
memory-usage: fix `hg log --follow --rev R F` space complexity...
memory-usage: fix `hg log --follow --rev R F` space complexity When running `hg log --follow --rev REVS FILES`, the log code will walk the history of all FILES starting from the file revisions that exists in each REVS. Before doing so, it looks if the files actually exists in the target revisions. To do so, it opens the manifest of each revision in REVS to look up if we find the associated items in FILES. Before this changeset this was done in a way that created a changectx for each target revision, keeping them in memory while we look into each file. If the set of REVS is large, this means keeping the manifest for each entry in REVS in memory. That can be largeā€¦ if REV is in the form `::X`, this can quickly become huge and saturate the memory. We have seen usage allocating 2GB per second until memory runs out. So this changeset invert the two loop so that only one revision is kept in memory during the operation. This solve the memory explosion issue.

File last commit:

r49953:136e94ed default
r50517:dcb2581e stable
Show More
readme.rst
44 lines | 1.5 KiB | text/x-rst | RstLexer
Gregory Szorc
inno: script to automate building Inno installer...
r42019 Requirements
============
Building the Inno installer requires a Windows machine.
The following system dependencies must be installed:
* Inno Setup (http://jrsoftware.org/isdl.php) version 5.4 or newer.
Be sure to install the optional Inno Setup Preprocessor feature,
which is required.
Matt Harbison
packaging: drop python27 references from the Windows instructions...
r49971 * Python 3.6+ (to run the ``packaging.py`` script)
Gregory Szorc
inno: script to automate building Inno installer...
r42019
Building
========
Matt Harbison
packaging: drop python27 references from the Windows instructions...
r49971 The ``packaging.py`` script automates the process of producing an Inno
installer. It manages fetching and configuring non-system dependencies
(such as gettext, and various Python packages). It can be run from a
basic cmd.exe Window (i.e. activating the MSBuildTools environment is
not required).
Gregory Szorc
inno: script to automate building Inno installer...
r42019
From the prompt, change to the Mercurial source directory. e.g.
``cd c:\src\hg``.
Matt Harbison
packaging: drop python27 references from the Windows instructions...
r49971 Next, invoke ``packaging.py`` to produce an Inno installer.::
Gregory Szorc
inno: script to automate building Inno installer...
r42019
Matt Harbison
packaging: replace a documentation reference to `python3` on Windows...
r47179 $ py -3 contrib\packaging\packaging.py \
Matt Harbison
packaging: drop python27 references from the Windows instructions...
r49971 inno --pyoxidizer-target x86_64-pc-windows-msvc
Gregory Szorc
inno: script to automate building Inno installer...
r42019
If everything runs as intended, dependencies will be fetched and
configured into the ``build`` sub-directory, Mercurial will be built,
Matt Harbison
packaging: drop python27 references from the Windows instructions...
r49971 and an installer placed in the ``dist`` sub-directory. The final line
of output should print the name of the generated installer.
Gregory Szorc
inno: script to automate building Inno installer...
r42019
Matt Harbison
packaging: drop python27 references from the Windows instructions...
r49971 Additional options may be configured. Run ``packaging.py inno --help``
to see a list of program flags.
Gregory Szorc
inno: script to automate building Inno installer...
r42019
MinGW
=====
It is theoretically possible to generate an installer that uses
Gregory Szorc
packaging: consolidate CLI functionality into packaging.py...
r43913 MinGW. This isn't well tested and ``packaging.py`` and may properly
Gregory Szorc
inno: script to automate building Inno installer...
r42019 support it. See old versions of this file in version control for
potentially useful hints as to how to achieve this.