Show More
@@ -1,244 +1,245 b'' | |||
|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
|
2 | 2 | <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> |
|
3 | 3 | |
|
4 | 4 | <?include guids.wxi ?> |
|
5 | 5 | <?include defines.wxi ?> |
|
6 | 6 | |
|
7 | 7 | <Fragment> |
|
8 | 8 | <ComponentGroup Id="templatesFolder"> |
|
9 | 9 | |
|
10 | 10 | <ComponentRef Id="templates.root" /> |
|
11 | 11 | |
|
12 | 12 | <ComponentRef Id="templates.atom" /> |
|
13 | 13 | <ComponentRef Id="templates.coal" /> |
|
14 | 14 | <ComponentRef Id="templates.gitweb" /> |
|
15 | 15 | <ComponentRef Id="templates.json" /> |
|
16 | 16 | <ComponentRef Id="templates.monoblue" /> |
|
17 | 17 | <ComponentRef Id="templates.paper" /> |
|
18 | 18 | <ComponentRef Id="templates.raw" /> |
|
19 | 19 | <ComponentRef Id="templates.rss" /> |
|
20 | 20 | <ComponentRef Id="templates.spartan" /> |
|
21 | 21 | <ComponentRef Id="templates.static" /> |
|
22 | 22 | |
|
23 | 23 | </ComponentGroup> |
|
24 | 24 | </Fragment> |
|
25 | 25 | |
|
26 | 26 | <Fragment> |
|
27 | 27 | <DirectoryRef Id="INSTALLDIR"> |
|
28 | 28 | |
|
29 | 29 | <Directory Id="templatesdir" Name="templates" FileSource="$(var.SourceDir)"> |
|
30 | 30 | |
|
31 | 31 | <Component Id="templates.root" Guid="$(var.templates.root.guid)" Win64='$(var.IsX64)'> |
|
32 | 32 | <File Name="map-cmdline.changelog" KeyPath="yes" /> |
|
33 | 33 | <File Name="map-cmdline.compact" /> |
|
34 | 34 | <File Name="map-cmdline.default" /> |
|
35 | 35 | <File Name="map-cmdline.bisect" /> |
|
36 | 36 | <File Name="map-cmdline.xml" /> |
|
37 | <File Name="map-cmdline.status" /> | |
|
37 | 38 | <File Name="map-cmdline.phases" /> |
|
38 | 39 | </Component> |
|
39 | 40 | |
|
40 | 41 | <Directory Id="templates.jsondir" Name="json"> |
|
41 | 42 | <Component Id="templates.json" Guid="$(var.templates.json.guid)" Win64='$(var.IsX64)'> |
|
42 | 43 | <File Id="json.changelist.tmpl" Name="changelist.tmpl" KeyPath="yes" /> |
|
43 | 44 | <File Id="json.map" Name="map" /> |
|
44 | 45 | </Component> |
|
45 | 46 | </Directory> |
|
46 | 47 | |
|
47 | 48 | <Directory Id="templates.atomdir" Name="atom"> |
|
48 | 49 | <Component Id="templates.atom" Guid="$(var.templates.atom.guid)" Win64='$(var.IsX64)'> |
|
49 | 50 | <File Id="atom.changelog.tmpl" Name="changelog.tmpl" KeyPath="yes" /> |
|
50 | 51 | <File Id="atom.changelogentry.tmpl" Name="changelogentry.tmpl" /> |
|
51 | 52 | <File Id="atom.error.tmpl" Name="error.tmpl" /> |
|
52 | 53 | <File Id="atom.filelog.tmpl" Name="filelog.tmpl" /> |
|
53 | 54 | <File Id="atom.header.tmpl" Name="header.tmpl" /> |
|
54 | 55 | <File Id="atom.map" Name="map" /> |
|
55 | 56 | <File Id="atom.tagentry.tmpl" Name="tagentry.tmpl" /> |
|
56 | 57 | <File Id="atom.tags.tmpl" Name="tags.tmpl" /> |
|
57 | 58 | <File Id="atom.branchentry.tmpl" Name="branchentry.tmpl" /> |
|
58 | 59 | <File Id="atom.branches.tmpl" Name="branches.tmpl" /> |
|
59 | 60 | <File Id="atom.bookmarks.tmpl" Name="bookmarks.tmpl" /> |
|
60 | 61 | <File Id="atom.bookmarkentry.tmpl" Name="bookmarkentry.tmpl" /> |
|
61 | 62 | </Component> |
|
62 | 63 | </Directory> |
|
63 | 64 | |
|
64 | 65 | <Directory Id="templates.coaldir" Name="coal"> |
|
65 | 66 | <Component Id="templates.coal" Guid="$(var.templates.coal.guid)" Win64='$(var.IsX64)'> |
|
66 | 67 | <File Id="coal.header.tmpl" Name="header.tmpl" KeyPath="yes" /> |
|
67 | 68 | <File Id="coal.map" Name="map" /> |
|
68 | 69 | </Component> |
|
69 | 70 | </Directory> |
|
70 | 71 | |
|
71 | 72 | <Directory Id="templates.gitwebdir" Name="gitweb"> |
|
72 | 73 | <Component Id="templates.gitweb" Guid="$(var.templates.gitweb.guid)" Win64='$(var.IsX64)'> |
|
73 | 74 | <File Id="gitweb.branches.tmpl" Name="branches.tmpl" KeyPath="yes" /> |
|
74 | 75 | <File Id="gitweb.bookmarks.tmpl" Name="bookmarks.tmpl" /> |
|
75 | 76 | <File Id="gitweb.changelog.tmpl" Name="changelog.tmpl" /> |
|
76 | 77 | <File Id="gitweb.changelogentry.tmpl" Name="changelogentry.tmpl" /> |
|
77 | 78 | <File Id="gitweb.changeset.tmpl" Name="changeset.tmpl" /> |
|
78 | 79 | <File Id="gitweb.error.tmpl" Name="error.tmpl" /> |
|
79 | 80 | <File Id="gitweb.fileannotate.tmpl" Name="fileannotate.tmpl" /> |
|
80 | 81 | <File Id="gitweb.filecomparison.tmpl" Name="filecomparison.tmpl" /> |
|
81 | 82 | <File Id="gitweb.filediff.tmpl" Name="filediff.tmpl" /> |
|
82 | 83 | <File Id="gitweb.filelog.tmpl" Name="filelog.tmpl" /> |
|
83 | 84 | <File Id="gitweb.filerevision.tmpl" Name="filerevision.tmpl" /> |
|
84 | 85 | <File Id="gitweb.footer.tmpl" Name="footer.tmpl" /> |
|
85 | 86 | <File Id="gitweb.graph.tmpl" Name="graph.tmpl" /> |
|
86 | 87 | <File Id="gitweb.header.tmpl" Name="header.tmpl" /> |
|
87 | 88 | <File Id="gitweb.index.tmpl" Name="index.tmpl" /> |
|
88 | 89 | <File Id="gitweb.manifest.tmpl" Name="manifest.tmpl" /> |
|
89 | 90 | <File Id="gitweb.map" Name="map" /> |
|
90 | 91 | <File Id="gitweb.notfound.tmpl" Name="notfound.tmpl" /> |
|
91 | 92 | <File Id="gitweb.search.tmpl" Name="search.tmpl" /> |
|
92 | 93 | <File Id="gitweb.shortlog.tmpl" Name="shortlog.tmpl" /> |
|
93 | 94 | <File Id="gitweb.summary.tmpl" Name="summary.tmpl" /> |
|
94 | 95 | <File Id="gitweb.tags.tmpl" Name="tags.tmpl" /> |
|
95 | 96 | <File Id="gitweb.help.tmpl" Name="help.tmpl" /> |
|
96 | 97 | <File Id="gitweb.helptopics.tmpl" Name="helptopics.tmpl" /> |
|
97 | 98 | </Component> |
|
98 | 99 | </Directory> |
|
99 | 100 | |
|
100 | 101 | <Directory Id="templates.monobluedir" Name="monoblue"> |
|
101 | 102 | <Component Id="templates.monoblue" Guid="$(var.templates.monoblue.guid)" Win64='$(var.IsX64)'> |
|
102 | 103 | <File Id="monoblue.branches.tmpl" Name="branches.tmpl" KeyPath="yes" /> |
|
103 | 104 | <File Id="monoblue.bookmarks.tmpl" Name="bookmarks.tmpl" /> |
|
104 | 105 | <File Id="monoblue.changelog.tmpl" Name="changelog.tmpl" /> |
|
105 | 106 | <File Id="monoblue.changelogentry.tmpl" Name="changelogentry.tmpl" /> |
|
106 | 107 | <File Id="monoblue.changeset.tmpl" Name="changeset.tmpl" /> |
|
107 | 108 | <File Id="monoblue.error.tmpl" Name="error.tmpl" /> |
|
108 | 109 | <File Id="monoblue.fileannotate.tmpl" Name="fileannotate.tmpl" /> |
|
109 | 110 | <File Id="monoblue.filecomparison.tmpl" Name="filecomparison.tmpl" /> |
|
110 | 111 | <File Id="monoblue.filediff.tmpl" Name="filediff.tmpl" /> |
|
111 | 112 | <File Id="monoblue.filelog.tmpl" Name="filelog.tmpl" /> |
|
112 | 113 | <File Id="monoblue.filerevision.tmpl" Name="filerevision.tmpl" /> |
|
113 | 114 | <File Id="monoblue.footer.tmpl" Name="footer.tmpl" /> |
|
114 | 115 | <File Id="monoblue.graph.tmpl" Name="graph.tmpl" /> |
|
115 | 116 | <File Id="monoblue.header.tmpl" Name="header.tmpl" /> |
|
116 | 117 | <File Id="monoblue.index.tmpl" Name="index.tmpl" /> |
|
117 | 118 | <File Id="monoblue.manifest.tmpl" Name="manifest.tmpl" /> |
|
118 | 119 | <File Id="monoblue.map" Name="map" /> |
|
119 | 120 | <File Id="monoblue.notfound.tmpl" Name="notfound.tmpl" /> |
|
120 | 121 | <File Id="monoblue.search.tmpl" Name="search.tmpl" /> |
|
121 | 122 | <File Id="monoblue.shortlog.tmpl" Name="shortlog.tmpl" /> |
|
122 | 123 | <File Id="monoblue.summary.tmpl" Name="summary.tmpl" /> |
|
123 | 124 | <File Id="monoblue.tags.tmpl" Name="tags.tmpl" /> |
|
124 | 125 | <File Id="monoblue.help.tmpl" Name="help.tmpl" /> |
|
125 | 126 | <File Id="monoblue.helptopics.tmpl" Name="helptopics.tmpl" /> |
|
126 | 127 | </Component> |
|
127 | 128 | </Directory> |
|
128 | 129 | |
|
129 | 130 | <Directory Id="templates.paperdir" Name="paper"> |
|
130 | 131 | <Component Id="templates.paper" Guid="$(var.templates.paper.guid)" Win64='$(var.IsX64)'> |
|
131 | 132 | <File Id="paper.branches.tmpl" Name="branches.tmpl" KeyPath="yes" /> |
|
132 | 133 | <File Id="paper.bookmarks.tmpl" Name="bookmarks.tmpl" /> |
|
133 | 134 | <File Id="paper.changeset.tmpl" Name="changeset.tmpl" /> |
|
134 | 135 | <File Id="paper.diffstat.tmpl" Name="diffstat.tmpl" /> |
|
135 | 136 | <File Id="paper.error.tmpl" Name="error.tmpl" /> |
|
136 | 137 | <File Id="paper.fileannotate.tmpl" Name="fileannotate.tmpl" /> |
|
137 | 138 | <File Id="paper.filecomparison.tmpl" Name="filecomparison.tmpl" /> |
|
138 | 139 | <File Id="paper.filediff.tmpl" Name="filediff.tmpl" /> |
|
139 | 140 | <File Id="paper.filelog.tmpl" Name="filelog.tmpl" /> |
|
140 | 141 | <File Id="paper.filelogentry.tmpl" Name="filelogentry.tmpl" /> |
|
141 | 142 | <File Id="paper.filerevision.tmpl" Name="filerevision.tmpl" /> |
|
142 | 143 | <File Id="paper.footer.tmpl" Name="footer.tmpl" /> |
|
143 | 144 | <File Id="paper.graph.tmpl" Name="graph.tmpl" /> |
|
144 | 145 | <File Id="paper.header.tmpl" Name="header.tmpl" /> |
|
145 | 146 | <File Id="paper.index.tmpl" Name="index.tmpl" /> |
|
146 | 147 | <File Id="paper.manifest.tmpl" Name="manifest.tmpl" /> |
|
147 | 148 | <File Id="paper.map" Name="map" /> |
|
148 | 149 | <File Id="paper.notfound.tmpl" Name="notfound.tmpl" /> |
|
149 | 150 | <File Id="paper.search.tmpl" Name="search.tmpl" /> |
|
150 | 151 | <File Id="paper.shortlog.tmpl" Name="shortlog.tmpl" /> |
|
151 | 152 | <File Id="paper.shortlogentry.tmpl" Name="shortlogentry.tmpl" /> |
|
152 | 153 | <File Id="paper.tags.tmpl" Name="tags.tmpl" /> |
|
153 | 154 | <File Id="paper.help.tmpl" Name="help.tmpl" /> |
|
154 | 155 | <File Id="paper.helptopics.tmpl" Name="helptopics.tmpl" /> |
|
155 | 156 | </Component> |
|
156 | 157 | </Directory> |
|
157 | 158 | |
|
158 | 159 | <Directory Id="templates.rawdir" Name="raw"> |
|
159 | 160 | <Component Id="templates.raw" Guid="$(var.templates.raw.guid)" Win64='$(var.IsX64)'> |
|
160 | 161 | <File Id="raw.changeset.tmpl" Name="changeset.tmpl" KeyPath="yes" /> |
|
161 | 162 | <File Id="raw.error.tmpl" Name="error.tmpl" /> |
|
162 | 163 | <File Id="raw.fileannotate.tmpl" Name="fileannotate.tmpl" /> |
|
163 | 164 | <File Id="raw.filediff.tmpl" Name="filediff.tmpl" /> |
|
164 | 165 | <File Id="raw.graph.tmpl" Name="graph.tmpl" /> |
|
165 | 166 | <File Id="raw.graphedge.tmpl" Name="graphedge.tmpl" /> |
|
166 | 167 | <File Id="raw.graphnode.tmpl" Name="graphnode.tmpl" /> |
|
167 | 168 | <File Id="raw.index.tmpl" Name="index.tmpl" /> |
|
168 | 169 | <File Id="raw.manifest.tmpl" Name="manifest.tmpl" /> |
|
169 | 170 | <File Id="raw.map" Name="map" /> |
|
170 | 171 | <File Id="raw.notfound.tmpl" Name="notfound.tmpl" /> |
|
171 | 172 | <File Id="raw.search.tmpl" Name="search.tmpl" /> |
|
172 | 173 | <File Id="raw.logentry.tmpl" Name="logentry.tmpl" /> |
|
173 | 174 | <File Id="raw.changelog.tmpl" Name="changelog.tmpl" /> |
|
174 | 175 | </Component> |
|
175 | 176 | </Directory> |
|
176 | 177 | |
|
177 | 178 | <Directory Id="templates.rssdir" Name="rss"> |
|
178 | 179 | <Component Id="templates.rss" Guid="$(var.templates.rss.guid)" Win64='$(var.IsX64)'> |
|
179 | 180 | <File Id="rss.changelog.tmpl" Name="changelog.tmpl" KeyPath="yes" /> |
|
180 | 181 | <File Id="rss.changelogentry.tmpl" Name="changelogentry.tmpl" /> |
|
181 | 182 | <File Id="rss.error.tmpl" Name="error.tmpl" /> |
|
182 | 183 | <File Id="rss.filelog.tmpl" Name="filelog.tmpl" /> |
|
183 | 184 | <File Id="rss.filelogentry.tmpl" Name="filelogentry.tmpl" /> |
|
184 | 185 | <File Id="rss.header.tmpl" Name="header.tmpl" /> |
|
185 | 186 | <File Id="rss.map" Name="map" /> |
|
186 | 187 | <File Id="rss.tagentry.tmpl" Name="tagentry.tmpl" /> |
|
187 | 188 | <File Id="rss.tags.tmpl" Name="tags.tmpl" /> |
|
188 | 189 | <File Id="rss.bookmarks.tmpl" Name="bookmarks.tmpl" /> |
|
189 | 190 | <File Id="rss.bookmarkentry.tmpl" Name="bookmarkentry.tmpl" /> |
|
190 | 191 | <File Id="rss.branchentry.tmpl" Name="branchentry.tmpl" /> |
|
191 | 192 | <File Id="rss.branches.tmpl" Name="branches.tmpl" /> |
|
192 | 193 | </Component> |
|
193 | 194 | </Directory> |
|
194 | 195 | |
|
195 | 196 | <Directory Id="templates.spartandir" Name="spartan"> |
|
196 | 197 | <Component Id="templates.spartan" Guid="$(var.templates.spartan.guid)" Win64='$(var.IsX64)'> |
|
197 | 198 | <File Id="spartan.branches.tmpl" Name="branches.tmpl" KeyPath="yes" /> |
|
198 | 199 | <File Id="spartan.changelog.tmpl" Name="changelog.tmpl" /> |
|
199 | 200 | <File Id="spartan.changelogentry.tmpl" Name="changelogentry.tmpl" /> |
|
200 | 201 | <File Id="spartan.changeset.tmpl" Name="changeset.tmpl" /> |
|
201 | 202 | <File Id="spartan.error.tmpl" Name="error.tmpl" /> |
|
202 | 203 | <File Id="spartan.fileannotate.tmpl" Name="fileannotate.tmpl" /> |
|
203 | 204 | <File Id="spartan.filediff.tmpl" Name="filediff.tmpl" /> |
|
204 | 205 | <File Id="spartan.filelog.tmpl" Name="filelog.tmpl" /> |
|
205 | 206 | <File Id="spartan.filelogentry.tmpl" Name="filelogentry.tmpl" /> |
|
206 | 207 | <File Id="spartan.filerevision.tmpl" Name="filerevision.tmpl" /> |
|
207 | 208 | <File Id="spartan.footer.tmpl" Name="footer.tmpl" /> |
|
208 | 209 | <File Id="spartan.graph.tmpl" Name="graph.tmpl" /> |
|
209 | 210 | <File Id="spartan.header.tmpl" Name="header.tmpl" /> |
|
210 | 211 | <File Id="spartan.index.tmpl" Name="index.tmpl" /> |
|
211 | 212 | <File Id="spartan.manifest.tmpl" Name="manifest.tmpl" /> |
|
212 | 213 | <File Id="spartan.map" Name="map" /> |
|
213 | 214 | <File Id="spartan.notfound.tmpl" Name="notfound.tmpl" /> |
|
214 | 215 | <File Id="spartan.search.tmpl" Name="search.tmpl" /> |
|
215 | 216 | <File Id="spartan.shortlog.tmpl" Name="shortlog.tmpl" /> |
|
216 | 217 | <File Id="spartan.shortlogentry.tmpl" Name="shortlogentry.tmpl" /> |
|
217 | 218 | <File Id="spartan.tags.tmpl" Name="tags.tmpl" /> |
|
218 | 219 | </Component> |
|
219 | 220 | </Directory> |
|
220 | 221 | |
|
221 | 222 | <Directory Id="templates.staticdir" Name="static"> |
|
222 | 223 | <Component Id="templates.static" Guid="$(var.templates.static.guid)" Win64='$(var.IsX64)'> |
|
223 | 224 | <File Id="static.background.png" Name="background.png" KeyPath="yes" /> |
|
224 | 225 | <File Id="static.coal.file.png" Name="coal-file.png" /> |
|
225 | 226 | <File Id="static.coal.folder.png" Name="coal-folder.png" /> |
|
226 | 227 | <File Id="static.excanvas.js" Name="excanvas.js" /> |
|
227 | 228 | <File Id="static.mercurial.js" Name="mercurial.js" /> |
|
228 | 229 | <File Id="static.hgicon.png" Name="hgicon.png" /> |
|
229 | 230 | <File Id="static.hglogo.png" Name="hglogo.png" /> |
|
230 | 231 | <File Id="static.style.coal.css" Name="style-extra-coal.css" /> |
|
231 | 232 | <File Id="static.style.gitweb.css" Name="style-gitweb.css" /> |
|
232 | 233 | <File Id="static.style.monoblue.css" Name="style-monoblue.css" /> |
|
233 | 234 | <File Id="static.style.paper.css" Name="style-paper.css" /> |
|
234 | 235 | <File Id="static.style.css" Name="style.css" /> |
|
235 | 236 | <File Id="static.feed.icon" Name="feed-icon-14x14.png" /> |
|
236 | 237 | </Component> |
|
237 | 238 | </Directory> |
|
238 | 239 | |
|
239 | 240 | </Directory> |
|
240 | 241 | |
|
241 | 242 | </DirectoryRef> |
|
242 | 243 | </Fragment> |
|
243 | 244 | |
|
244 | 245 | </Wix> |
@@ -1,111 +1,110 b'' | |||
|
1 | 1 | hg debuginstall |
|
2 | 2 | $ hg debuginstall |
|
3 | 3 | checking encoding (ascii)... |
|
4 | 4 | checking Python executable (*) (glob) |
|
5 | 5 | checking Python version (2.*) (glob) |
|
6 | 6 | checking Python lib (*lib*)... (glob) |
|
7 | 7 | checking installed modules (*mercurial)... (glob) |
|
8 | 8 | checking templates (*mercurial?templates)... (glob) |
|
9 | 9 | checking commit editor... |
|
10 | 10 | checking username... |
|
11 | 11 | no problems detected |
|
12 | 12 | |
|
13 | 13 | hg debuginstall with no username |
|
14 | 14 | $ HGUSER= hg debuginstall |
|
15 | 15 | checking encoding (ascii)... |
|
16 | 16 | checking Python executable (*) (glob) |
|
17 | 17 | checking Python version (2.*) (glob) |
|
18 | 18 | checking Python lib (*lib*)... (glob) |
|
19 | 19 | checking installed modules (*mercurial)... (glob) |
|
20 | 20 | checking templates (*mercurial?templates)... (glob) |
|
21 | 21 | checking commit editor... |
|
22 | 22 | checking username... |
|
23 | 23 | no username supplied |
|
24 | 24 | (specify a username in your configuration file) |
|
25 | 25 | 1 problems detected, please check your install! |
|
26 | 26 | [1] |
|
27 | 27 | |
|
28 | 28 | path variables are expanded (~ is the same as $TESTTMP) |
|
29 | 29 | $ mkdir tools |
|
30 | 30 | $ touch tools/testeditor.exe |
|
31 | 31 | #if execbit |
|
32 | 32 | $ chmod 755 tools/testeditor.exe |
|
33 | 33 | #endif |
|
34 | 34 | $ hg debuginstall --config ui.editor=~/tools/testeditor.exe |
|
35 | 35 | checking encoding (ascii)... |
|
36 | 36 | checking Python executable (*) (glob) |
|
37 | 37 | checking Python version (*) (glob) |
|
38 | 38 | checking Python lib (*lib*)... (glob) |
|
39 | 39 | checking installed modules (*mercurial)... (glob) |
|
40 | 40 | checking templates (*mercurial?templates)... (glob) |
|
41 | 41 | checking commit editor... |
|
42 | 42 | checking username... |
|
43 | 43 | no problems detected |
|
44 | 44 | |
|
45 | 45 | $ cat >> wixxml.py << EOF |
|
46 | 46 | > import os, subprocess, sys |
|
47 | 47 | > import xml.etree.ElementTree as ET |
|
48 | 48 | > |
|
49 | 49 | > # MSYS mangles the path if it expands $TESTDIR |
|
50 | 50 | > testdir = os.environ['TESTDIR'] |
|
51 | 51 | > ns = {'wix' : 'http://schemas.microsoft.com/wix/2006/wi'} |
|
52 | 52 | > |
|
53 | 53 | > def directory(node, relpath): |
|
54 | 54 | > '''generator of files in the xml node, rooted at relpath''' |
|
55 | 55 | > dirs = node.findall('./wix:Directory', ns) |
|
56 | 56 | > |
|
57 | 57 | > for d in dirs: |
|
58 | 58 | > for subfile in directory(d, relpath + d.attrib['Name'] + '/'): |
|
59 | 59 | > yield subfile |
|
60 | 60 | > |
|
61 | 61 | > files = node.findall('./wix:Component/wix:File', ns) |
|
62 | 62 | > |
|
63 | 63 | > for f in files: |
|
64 | 64 | > yield relpath + f.attrib['Name'] |
|
65 | 65 | > |
|
66 | 66 | > def hgdirectory(relpath): |
|
67 | 67 | > '''generator of tracked files, rooted at relpath''' |
|
68 | 68 | > hgdir = "%s/../mercurial" % (testdir) |
|
69 | 69 | > args = ['hg', '--cwd', hgdir, 'files', '--rev', '.', relpath] |
|
70 | 70 | > proc = subprocess.Popen(args, stdout=subprocess.PIPE, |
|
71 | 71 | > stderr=subprocess.PIPE) |
|
72 | 72 | > output = proc.communicate()[0] |
|
73 | 73 | > |
|
74 | 74 | > slash = '/' |
|
75 | 75 | > for line in output.splitlines(): |
|
76 | 76 | > if os.name == 'nt': |
|
77 | 77 | > yield line.replace(os.sep, slash) |
|
78 | 78 | > else: |
|
79 | 79 | > yield line |
|
80 | 80 | > |
|
81 | 81 | > tracked = [f for f in hgdirectory(sys.argv[1])] |
|
82 | 82 | > |
|
83 | 83 | > xml = ET.parse("%s/../contrib/wix/%s.wxs" % (testdir, sys.argv[1])) |
|
84 | 84 | > root = xml.getroot() |
|
85 | 85 | > dir = root.find('.//wix:DirectoryRef', ns) |
|
86 | 86 | > |
|
87 | 87 | > installed = [f for f in directory(dir, '')] |
|
88 | 88 | > |
|
89 | 89 | > print('Not installed:') |
|
90 | 90 | > for f in sorted(set(tracked) - set(installed)): |
|
91 | 91 | > print(' %s' % f) |
|
92 | 92 | > |
|
93 | 93 | > print('Not tracked:') |
|
94 | 94 | > for f in sorted(set(installed) - set(tracked)): |
|
95 | 95 | > print(' %s' % f) |
|
96 | 96 | > EOF |
|
97 | 97 | |
|
98 | 98 | $ python wixxml.py help |
|
99 | 99 | Not installed: |
|
100 | 100 | help/common.txt |
|
101 | 101 | help/hg.1.txt |
|
102 | 102 | help/hgignore.5.txt |
|
103 | 103 | help/hgrc.5.txt |
|
104 | 104 | help/internals/bundles.txt |
|
105 | 105 | help/internals/changegroups.txt |
|
106 | 106 | Not tracked: |
|
107 | 107 | |
|
108 | 108 | $ python wixxml.py templates |
|
109 | 109 | Not installed: |
|
110 | templates/map-cmdline.status | |
|
111 | 110 | Not tracked: |
General Comments 0
You need to be logged in to leave comments.
Login now