##// END OF EJS Templates
wix: include the help for pager...
Matt Harbison -
r31098:876f08f3 default
parent child Browse files
Show More
@@ -1,51 +1,52 b''
1 <?xml version="1.0" encoding="utf-8"?>
1 <?xml version="1.0" encoding="utf-8"?>
2 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
2 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3
3
4 <?include guids.wxi ?>
4 <?include guids.wxi ?>
5 <?include defines.wxi ?>
5 <?include defines.wxi ?>
6
6
7 <Fragment>
7 <Fragment>
8 <ComponentGroup Id='helpFolder'>
8 <ComponentGroup Id='helpFolder'>
9 <ComponentRef Id='help.root' />
9 <ComponentRef Id='help.root' />
10 <ComponentRef Id='help.internals' />
10 <ComponentRef Id='help.internals' />
11 </ComponentGroup>
11 </ComponentGroup>
12 </Fragment>
12 </Fragment>
13
13
14 <Fragment>
14 <Fragment>
15 <DirectoryRef Id="INSTALLDIR">
15 <DirectoryRef Id="INSTALLDIR">
16 <Directory Id="helpdir" Name="help" FileSource="$(var.SourceDir)">
16 <Directory Id="helpdir" Name="help" FileSource="$(var.SourceDir)">
17 <Component Id="help.root" Guid="$(var.help.root.guid)" Win64='$(var.IsX64)'>
17 <Component Id="help.root" Guid="$(var.help.root.guid)" Win64='$(var.IsX64)'>
18 <File Name="config.txt" KeyPath="yes" />
18 <File Name="config.txt" KeyPath="yes" />
19 <File Name="dates.txt" />
19 <File Name="dates.txt" />
20 <File Name="diffs.txt" />
20 <File Name="diffs.txt" />
21 <File Name="environment.txt" />
21 <File Name="environment.txt" />
22 <File Name="extensions.txt" />
22 <File Name="extensions.txt" />
23 <File Name="filesets.txt" />
23 <File Name="filesets.txt" />
24 <File Name="glossary.txt" />
24 <File Name="glossary.txt" />
25 <File Name="hgignore.txt" />
25 <File Name="hgignore.txt" />
26 <File Name="hgweb.txt" />
26 <File Name="hgweb.txt" />
27 <File Name="merge-tools.txt" />
27 <File Name="merge-tools.txt" />
28 <File Name="pager.txt" />
28 <File Name="patterns.txt" />
29 <File Name="patterns.txt" />
29 <File Name="phases.txt" />
30 <File Name="phases.txt" />
30 <File Name="revisions.txt" />
31 <File Name="revisions.txt" />
31 <File Name="scripting.txt" />
32 <File Name="scripting.txt" />
32 <File Name="subrepos.txt" />
33 <File Name="subrepos.txt" />
33 <File Name="templates.txt" />
34 <File Name="templates.txt" />
34 <File Name="urls.txt" />
35 <File Name="urls.txt" />
35 </Component>
36 </Component>
36
37
37 <Directory Id="help.internaldir" Name="internals">
38 <Directory Id="help.internaldir" Name="internals">
38 <Component Id="help.internals" Guid="$(var.help.internals.guid)" Win64='$(var.IsX64)'>
39 <Component Id="help.internals" Guid="$(var.help.internals.guid)" Win64='$(var.IsX64)'>
39 <File Id="internals.bundles.txt" Name="bundles.txt" KeyPath="yes" />
40 <File Id="internals.bundles.txt" Name="bundles.txt" KeyPath="yes" />
40 <File Id="internals.changegroups.txt" Name="changegroups.txt" />
41 <File Id="internals.changegroups.txt" Name="changegroups.txt" />
41 <File Id="internals.requirements.txt" Name="requirements.txt" />
42 <File Id="internals.requirements.txt" Name="requirements.txt" />
42 <File Id="internals.revlogs.txt" Name="revlogs.txt" />
43 <File Id="internals.revlogs.txt" Name="revlogs.txt" />
43 <File Id="internals.wireprotocol.txt" Name="wireprotocol.txt" />
44 <File Id="internals.wireprotocol.txt" Name="wireprotocol.txt" />
44 </Component>
45 </Component>
45 </Directory>
46 </Directory>
46
47
47 </Directory>
48 </Directory>
48 </DirectoryRef>
49 </DirectoryRef>
49 </Fragment>
50 </Fragment>
50
51
51 </Wix>
52 </Wix>
@@ -1,176 +1,175 b''
1 hg debuginstall
1 hg debuginstall
2 $ hg debuginstall
2 $ hg debuginstall
3 checking encoding (ascii)...
3 checking encoding (ascii)...
4 checking Python executable (*) (glob)
4 checking Python executable (*) (glob)
5 checking Python version (2.*) (glob)
5 checking Python version (2.*) (glob)
6 checking Python lib (*lib*)... (glob)
6 checking Python lib (*lib*)... (glob)
7 checking Python security support (*) (glob)
7 checking Python security support (*) (glob)
8 TLS 1.2 not supported by Python install; network connections lack modern security (?)
8 TLS 1.2 not supported by Python install; network connections lack modern security (?)
9 SNI not supported by Python install; may have connectivity issues with some servers (?)
9 SNI not supported by Python install; may have connectivity issues with some servers (?)
10 checking Mercurial version (*) (glob)
10 checking Mercurial version (*) (glob)
11 checking Mercurial custom build (*) (glob)
11 checking Mercurial custom build (*) (glob)
12 checking module policy (*) (glob)
12 checking module policy (*) (glob)
13 checking installed modules (*mercurial)... (glob)
13 checking installed modules (*mercurial)... (glob)
14 checking registered compression engines (*zlib*) (glob)
14 checking registered compression engines (*zlib*) (glob)
15 checking available compression engines (*zlib*) (glob)
15 checking available compression engines (*zlib*) (glob)
16 checking available compression engines for wire protocol (*zlib*) (glob)
16 checking available compression engines for wire protocol (*zlib*) (glob)
17 checking templates (*mercurial?templates)... (glob)
17 checking templates (*mercurial?templates)... (glob)
18 checking default template (*mercurial?templates?map-cmdline.default) (glob)
18 checking default template (*mercurial?templates?map-cmdline.default) (glob)
19 checking commit editor... (* -c "import sys; sys.exit(0)") (glob)
19 checking commit editor... (* -c "import sys; sys.exit(0)") (glob)
20 checking username (test)
20 checking username (test)
21 no problems detected
21 no problems detected
22
22
23 hg debuginstall JSON
23 hg debuginstall JSON
24 $ hg debuginstall -Tjson | sed 's|\\\\|\\|g'
24 $ hg debuginstall -Tjson | sed 's|\\\\|\\|g'
25 [
25 [
26 {
26 {
27 "compengines": ["bz2", "bz2truncated", "none", "zlib"*], (glob)
27 "compengines": ["bz2", "bz2truncated", "none", "zlib"*], (glob)
28 "compenginesavail": ["bz2", "bz2truncated", "none", "zlib"*], (glob)
28 "compenginesavail": ["bz2", "bz2truncated", "none", "zlib"*], (glob)
29 "compenginesserver": [*"zlib"*], (glob)
29 "compenginesserver": [*"zlib"*], (glob)
30 "defaulttemplate": "*mercurial?templates?map-cmdline.default", (glob)
30 "defaulttemplate": "*mercurial?templates?map-cmdline.default", (glob)
31 "defaulttemplateerror": null,
31 "defaulttemplateerror": null,
32 "defaulttemplatenotfound": "default",
32 "defaulttemplatenotfound": "default",
33 "editor": "* -c \"import sys; sys.exit(0)\"", (glob)
33 "editor": "* -c \"import sys; sys.exit(0)\"", (glob)
34 "editornotfound": false,
34 "editornotfound": false,
35 "encoding": "ascii",
35 "encoding": "ascii",
36 "encodingerror": null,
36 "encodingerror": null,
37 "extensionserror": null,
37 "extensionserror": null,
38 "hgmodulepolicy": "*", (glob)
38 "hgmodulepolicy": "*", (glob)
39 "hgmodules": "*mercurial", (glob)
39 "hgmodules": "*mercurial", (glob)
40 "hgver": "*", (glob)
40 "hgver": "*", (glob)
41 "hgverextra": "*", (glob)
41 "hgverextra": "*", (glob)
42 "problems": 0,
42 "problems": 0,
43 "pythonexe": "*", (glob)
43 "pythonexe": "*", (glob)
44 "pythonlib": "*", (glob)
44 "pythonlib": "*", (glob)
45 "pythonsecurity": [*], (glob)
45 "pythonsecurity": [*], (glob)
46 "pythonver": "*.*.*", (glob)
46 "pythonver": "*.*.*", (glob)
47 "templatedirs": "*mercurial?templates", (glob)
47 "templatedirs": "*mercurial?templates", (glob)
48 "username": "test",
48 "username": "test",
49 "usernameerror": null,
49 "usernameerror": null,
50 "vinotfound": false
50 "vinotfound": false
51 }
51 }
52 ]
52 ]
53
53
54 hg debuginstall with no username
54 hg debuginstall with no username
55 $ HGUSER= hg debuginstall
55 $ HGUSER= hg debuginstall
56 checking encoding (ascii)...
56 checking encoding (ascii)...
57 checking Python executable (*) (glob)
57 checking Python executable (*) (glob)
58 checking Python version (2.*) (glob)
58 checking Python version (2.*) (glob)
59 checking Python lib (*lib*)... (glob)
59 checking Python lib (*lib*)... (glob)
60 checking Python security support (*) (glob)
60 checking Python security support (*) (glob)
61 TLS 1.2 not supported by Python install; network connections lack modern security (?)
61 TLS 1.2 not supported by Python install; network connections lack modern security (?)
62 SNI not supported by Python install; may have connectivity issues with some servers (?)
62 SNI not supported by Python install; may have connectivity issues with some servers (?)
63 checking Mercurial version (*) (glob)
63 checking Mercurial version (*) (glob)
64 checking Mercurial custom build (*) (glob)
64 checking Mercurial custom build (*) (glob)
65 checking module policy (*) (glob)
65 checking module policy (*) (glob)
66 checking installed modules (*mercurial)... (glob)
66 checking installed modules (*mercurial)... (glob)
67 checking registered compression engines (*zlib*) (glob)
67 checking registered compression engines (*zlib*) (glob)
68 checking available compression engines (*zlib*) (glob)
68 checking available compression engines (*zlib*) (glob)
69 checking available compression engines for wire protocol (*zlib*) (glob)
69 checking available compression engines for wire protocol (*zlib*) (glob)
70 checking templates (*mercurial?templates)... (glob)
70 checking templates (*mercurial?templates)... (glob)
71 checking default template (*mercurial?templates?map-cmdline.default) (glob)
71 checking default template (*mercurial?templates?map-cmdline.default) (glob)
72 checking commit editor... (* -c "import sys; sys.exit(0)") (glob)
72 checking commit editor... (* -c "import sys; sys.exit(0)") (glob)
73 checking username...
73 checking username...
74 no username supplied
74 no username supplied
75 (specify a username in your configuration file)
75 (specify a username in your configuration file)
76 1 problems detected, please check your install!
76 1 problems detected, please check your install!
77 [1]
77 [1]
78
78
79 path variables are expanded (~ is the same as $TESTTMP)
79 path variables are expanded (~ is the same as $TESTTMP)
80 $ mkdir tools
80 $ mkdir tools
81 $ touch tools/testeditor.exe
81 $ touch tools/testeditor.exe
82 #if execbit
82 #if execbit
83 $ chmod 755 tools/testeditor.exe
83 $ chmod 755 tools/testeditor.exe
84 #endif
84 #endif
85 $ hg debuginstall --config ui.editor=~/tools/testeditor.exe
85 $ hg debuginstall --config ui.editor=~/tools/testeditor.exe
86 checking encoding (ascii)...
86 checking encoding (ascii)...
87 checking Python executable (*) (glob)
87 checking Python executable (*) (glob)
88 checking Python version (*) (glob)
88 checking Python version (*) (glob)
89 checking Python lib (*lib*)... (glob)
89 checking Python lib (*lib*)... (glob)
90 checking Python security support (*) (glob)
90 checking Python security support (*) (glob)
91 TLS 1.2 not supported by Python install; network connections lack modern security (?)
91 TLS 1.2 not supported by Python install; network connections lack modern security (?)
92 SNI not supported by Python install; may have connectivity issues with some servers (?)
92 SNI not supported by Python install; may have connectivity issues with some servers (?)
93 checking Mercurial version (*) (glob)
93 checking Mercurial version (*) (glob)
94 checking Mercurial custom build (*) (glob)
94 checking Mercurial custom build (*) (glob)
95 checking module policy (*) (glob)
95 checking module policy (*) (glob)
96 checking installed modules (*mercurial)... (glob)
96 checking installed modules (*mercurial)... (glob)
97 checking registered compression engines (*zlib*) (glob)
97 checking registered compression engines (*zlib*) (glob)
98 checking available compression engines (*zlib*) (glob)
98 checking available compression engines (*zlib*) (glob)
99 checking available compression engines for wire protocol (*zlib*) (glob)
99 checking available compression engines for wire protocol (*zlib*) (glob)
100 checking templates (*mercurial?templates)... (glob)
100 checking templates (*mercurial?templates)... (glob)
101 checking default template (*mercurial?templates?map-cmdline.default) (glob)
101 checking default template (*mercurial?templates?map-cmdline.default) (glob)
102 checking commit editor... (* -c "import sys; sys.exit(0)") (glob)
102 checking commit editor... (* -c "import sys; sys.exit(0)") (glob)
103 checking username (test)
103 checking username (test)
104 no problems detected
104 no problems detected
105
105
106 #if test-repo
106 #if test-repo
107 $ . "$TESTDIR/helpers-testrepo.sh"
107 $ . "$TESTDIR/helpers-testrepo.sh"
108
108
109 $ cat >> wixxml.py << EOF
109 $ cat >> wixxml.py << EOF
110 > import os, subprocess, sys
110 > import os, subprocess, sys
111 > import xml.etree.ElementTree as ET
111 > import xml.etree.ElementTree as ET
112 >
112 >
113 > # MSYS mangles the path if it expands $TESTDIR
113 > # MSYS mangles the path if it expands $TESTDIR
114 > testdir = os.environ['TESTDIR']
114 > testdir = os.environ['TESTDIR']
115 > ns = {'wix' : 'http://schemas.microsoft.com/wix/2006/wi'}
115 > ns = {'wix' : 'http://schemas.microsoft.com/wix/2006/wi'}
116 >
116 >
117 > def directory(node, relpath):
117 > def directory(node, relpath):
118 > '''generator of files in the xml node, rooted at relpath'''
118 > '''generator of files in the xml node, rooted at relpath'''
119 > dirs = node.findall('./{%(wix)s}Directory' % ns)
119 > dirs = node.findall('./{%(wix)s}Directory' % ns)
120 >
120 >
121 > for d in dirs:
121 > for d in dirs:
122 > for subfile in directory(d, relpath + d.attrib['Name'] + '/'):
122 > for subfile in directory(d, relpath + d.attrib['Name'] + '/'):
123 > yield subfile
123 > yield subfile
124 >
124 >
125 > files = node.findall('./{%(wix)s}Component/{%(wix)s}File' % ns)
125 > files = node.findall('./{%(wix)s}Component/{%(wix)s}File' % ns)
126 >
126 >
127 > for f in files:
127 > for f in files:
128 > yield relpath + f.attrib['Name']
128 > yield relpath + f.attrib['Name']
129 >
129 >
130 > def hgdirectory(relpath):
130 > def hgdirectory(relpath):
131 > '''generator of tracked files, rooted at relpath'''
131 > '''generator of tracked files, rooted at relpath'''
132 > hgdir = "%s/../mercurial" % (testdir)
132 > hgdir = "%s/../mercurial" % (testdir)
133 > args = ['hg', '--cwd', hgdir, 'files', relpath]
133 > args = ['hg', '--cwd', hgdir, 'files', relpath]
134 > proc = subprocess.Popen(args, stdout=subprocess.PIPE,
134 > proc = subprocess.Popen(args, stdout=subprocess.PIPE,
135 > stderr=subprocess.PIPE)
135 > stderr=subprocess.PIPE)
136 > output = proc.communicate()[0]
136 > output = proc.communicate()[0]
137 >
137 >
138 > slash = '/'
138 > slash = '/'
139 > for line in output.splitlines():
139 > for line in output.splitlines():
140 > if os.name == 'nt':
140 > if os.name == 'nt':
141 > yield line.replace(os.sep, slash)
141 > yield line.replace(os.sep, slash)
142 > else:
142 > else:
143 > yield line
143 > yield line
144 >
144 >
145 > tracked = [f for f in hgdirectory(sys.argv[1])]
145 > tracked = [f for f in hgdirectory(sys.argv[1])]
146 >
146 >
147 > xml = ET.parse("%s/../contrib/wix/%s.wxs" % (testdir, sys.argv[1]))
147 > xml = ET.parse("%s/../contrib/wix/%s.wxs" % (testdir, sys.argv[1]))
148 > root = xml.getroot()
148 > root = xml.getroot()
149 > dir = root.find('.//{%(wix)s}DirectoryRef' % ns)
149 > dir = root.find('.//{%(wix)s}DirectoryRef' % ns)
150 >
150 >
151 > installed = [f for f in directory(dir, '')]
151 > installed = [f for f in directory(dir, '')]
152 >
152 >
153 > print('Not installed:')
153 > print('Not installed:')
154 > for f in sorted(set(tracked) - set(installed)):
154 > for f in sorted(set(tracked) - set(installed)):
155 > print(' %s' % f)
155 > print(' %s' % f)
156 >
156 >
157 > print('Not tracked:')
157 > print('Not tracked:')
158 > for f in sorted(set(installed) - set(tracked)):
158 > for f in sorted(set(installed) - set(tracked)):
159 > print(' %s' % f)
159 > print(' %s' % f)
160 > EOF
160 > EOF
161
161
162 $ python wixxml.py help
162 $ python wixxml.py help
163 Not installed:
163 Not installed:
164 help/common.txt
164 help/common.txt
165 help/hg-ssh.8.txt
165 help/hg-ssh.8.txt
166 help/hg.1.txt
166 help/hg.1.txt
167 help/hgignore.5.txt
167 help/hgignore.5.txt
168 help/hgrc.5.txt
168 help/hgrc.5.txt
169 help/pager.txt
170 Not tracked:
169 Not tracked:
171
170
172 $ python wixxml.py templates
171 $ python wixxml.py templates
173 Not installed:
172 Not installed:
174 Not tracked:
173 Not tracked:
175
174
176 #endif
175 #endif
General Comments 0
You need to be logged in to leave comments. Login now