D7169: packaging: remove hg-ssh.8.html from Inno installer

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Mon Nov 11 21:09:26 UTC 2019


Closed by commit rHGa2f28a8746bf: packaging: remove hg-ssh.8.html from Inno installer (authored by indygreg).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7169?vs=17403&id=18022

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7169/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7169

AFFECTED FILES
  contrib/packaging/hgpackaging/py2exe.py

CHANGE DETAILS

diff --git a/contrib/packaging/hgpackaging/py2exe.py b/contrib/packaging/hgpackaging/py2exe.py
--- a/contrib/packaging/hgpackaging/py2exe.py
+++ b/contrib/packaging/hgpackaging/py2exe.py
@@ -52,6 +52,11 @@
     ('COPYING', 'Copying.txt'),
 ]
 
+# List of paths to exclude from the staging area.
+STAGING_EXCLUDES = [
+    'doc/hg-ssh.8.html',
+]
+
 
 def build_py2exe(
     source_dir: pathlib.Path,
@@ -212,3 +217,10 @@
     files.
     """
     process_install_rules(STAGING_RULES, source_dir, staging_dir)
+
+    # Purge any files we don't want to be there.
+    for f in STAGING_EXCLUDES:
+        p = staging_dir / f
+        if p.exists():
+            print('removing %s' % p)
+            p.unlink()



To: indygreg, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list