[PATCH 3 of 8 techdocs] setup.py: package internals help files

Gregory Szorc gregory.szorc at gmail.com
Sun Dec 13 13:46:56 CST 2015


# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1450035244 28800
#      Sun Dec 13 11:34:04 2015 -0800
# Node ID 0bc2c972900ff1a04d6fbfea0505aa82d673971e
# Parent  5cb89fe10dc8f9d016a81ff0c93af8fb68df2c8f
setup.py: package internals help files

mpm says internal docs should be visible via `hg help` and hgweb. They
need to be in the distribution for this to work. Package them.

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -594,16 +594,17 @@ except ImportError:
     # the cygwinccompiler package is not available on some Python
     # distributions like the ones from the optware project for Synology
     # DiskStation boxes
     class HackedMingw32CCompiler(object):
         pass
 
 packagedata = {'mercurial': ['locale/*/LC_MESSAGES/hg.mo',
                              'help/*.txt',
+                             'help/internals/*.txt',
                              'default.d/*.rc',
                              'dummycert.pem']}
 
 def ordinarypath(p):
     return p and p[0] != '.' and p[-1] != '~'
 
 for root in ('templates',):
     for curdir, dirs, files in os.walk(os.path.join('mercurial', root)):


More information about the Mercurial-devel mailing list