Kiln » TortoiseHg » WinBuild Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.3, 0.9, and 0.9.1

replace subrepos with extra script logic, bundle hgcr-gui extension

Changeset 33ad81de7c4b

Parent cd55c8711450

by Steve Borho

Changes to 4 files · Browse files at 33ad81de7c4b Showing diff from parent cd55c8711450 Diff from another changeset...

Change 1 of 1 Show Entire File .hgsub Stacked
 
1
2
3
4
5
 
 
 
 
 
 
@@ -1,5 +0,0 @@
-tortoisehg = http://bitbucket.org/tortoisehg/stable/ -hg-main = http://selenic.com/repo/hg/ -hg-stable = http://selenic.com/repo/hg-stable/ -asciidoc = http://hg.sharesource.org/asciidoc/ -hgfold = http://files.movedbylight.com/cgi-bin/hg/hgfold/
Change 1 of 1 Show Entire File .hgsubstate Stacked
 
1
2
3
4
5
 
 
 
 
 
 
@@ -1,5 +0,0 @@
-6649b4674f01c10fce6c82b4fa833adf30613c17 tortoisehg -3ac42ca1f3e617438c9fa3732678583ec6888bf6 hg-stable -37042e8b3b342b2e380d8be3e3f7692584c92d33 hg-main -f90db4ee6f11b6b66864681133cabbbc7ebed573 asciidoc -63b82f40acc8ac675b14de596c198e86a2ae40f3 hgfold
Change 1 of 1 Show Entire File README.txt Stacked
 
4
5
6
7
 
 
 
 
 
 
 
8
9
10
11
12
13
14
15
16
17
18
19
 
20
21
22
 
4
5
6
 
7
8
9
10
11
12
13
14
15
16
17
18
19
 
 
 
 
 
 
20
21
22
23
@@ -4,19 +4,20 @@
 found on this repository's wiki:  http://bitbucket.org/tortoisehg/thg-winbuild/wiki/Home   -Subrepos: +Repository subdirs: + +contrib/ - Bundled libraries and utilities external to (T)HG +misc/ - Miscellaneous files used to build packages +gtk-dist/ - directory where you copy GTK+ redistribution files + +Clones:    asciidoc - for Mercurial man pages, up to release 1.3  hg-main - Mercurial repository  hg-stable - Mercurial stable repository  tortoisehg - TortoiseHg repository  hgfold - case folding conflict detection and resolution extension - -Provided subdirs: - -contrib/ - Bundled libraries and utilities external to (T)HG -misc/ - Miscellaneous files used to build packages -gtk-dist/ - directory where you copy GTK+ redistribution files +hgcr-gui - code review extension      === Prerequisites ===
Change 1 of 9 Show Entire File setup.py Stacked
 
26
27
28
 
29
30
31
 
37
38
39
40
41
42
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
45
46
 
74
75
76
77
78
79
80
 
105
106
107
 
 
108
109
110
 
209
210
211
 
 
 
212
213
214
 
217
218
219
 
 
 
220
221
222
 
227
228
229
 
 
230
231
232
233
234
235
236
237
238
239
240
 
 
241
242
243
244
245
246
 
 
247
248
249
 
252
253
254
 
255
256
257
258
259
260
261
 
276
277
278
279
 
280
281
282
283
284
285
 
 
286
287
288
289
290
291
 
 
 
26
27
28
29
30
31
32
 
38
39
40
 
 
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
 
88
89
90
 
91
92
93
 
118
119
120
121
122
123
124
125
 
224
225
226
227
228
229
230
231
232
 
235
236
237
238
239
240
241
242
243
 
248
249
250
251
252
253
254
255
256
257
 
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
 
278
279
280
281
282
283
284
 
285
286
287
 
302
303
304
 
305
306
307
308
309
 
 
310
311
312
313
314
315
 
 
316
317
@@ -26,6 +26,7 @@
 import getopt  import re   +  # default to TortoiseHg nightly build config  hgbranch = 'hg-stable'  hgtag = 'tip' @@ -37,10 +38,23 @@
 buildthg = False  isccopts = []  dopull = None -hgurl = 'http://selenic.com/repo/hg-stable/' -thgurl = 'http://bitbucket.org/tortoisehg/stable/'  showconfig = False   +URL = { + 'hg-stable' : 'http://selenic.com/repo/hg-stable/', + 'hg-main' : 'http://selenic.com/repo/hg/', + 'tortoisehg': 'http://bitbucket.org/tortoisehg/stable/', + 'asciidoc' : 'http://hg.sharesource.org/asciidoc/', + 'hgfold' : 'http://files.movedbylight.com/cgi-bin/hg/hgfold/', + 'hgcr-gui' : 'http://bitbucket.org/glimchb/hgcr-gui/', + } + +def checkrepo(name, ver=''): + if os.path.isdir(name): + return + run(r'hg clone -U %s %s' % (URL[name], name)) + run(r'hg update -R %s %s' % (name, ver)) +  def run(cmd, cwd='.'):   print cwd + "> " + cmd   subprocess.check_call(cmd, shell=True, cwd=cwd) @@ -74,7 +88,6 @@
  run(r'hg update ' + tag, 'build-hg')   # Comment the next line to use MSVC to build Mercurial   run(r'copy misc\setup.cfg build-hg') - run(r'copy hgfold\fold.py build-hg\hgext')   run(r'python setup.py --version', 'build-hg')   run(r'python setup.py build_py -c -d . build_ext -i build_mo', 'build-hg')   # Build man pages @@ -105,6 +118,8 @@
  run(r'xcopy /s /q ..\gtk-dist dist', 'build-thg')   run(r'copy ..\misc\gtkrc dist\gtk\etc\gtk-2.0', 'build-thg')   run(r'copy contrib\win32\setup.cfg .', 'build-thg') + run(r'if exist hgfold copy hgfold\fold.py build-hg\hgext') + run(r'if exist hgcr-gui copy hgcr-gui\hgcr-gui.py build-hg\hgext')   # Build docs   os.environ['hhc_compiler'] = '"' + findhhc() + '"'   run(r'build chm', 'build-thg/doc') @@ -209,6 +224,9 @@
  run(r'del misc\ThgShellx??.dll')   sys.exit(0)   elif opt == '--thg-release': + for r in ('tortoisehg', 'hg-stable', 'hgfold'): + checkrepo(r) + checkrepo('asciidoc', '8.2.6')   buildthg = True   thgbranch = 'stable'   thgtag = '0.8.2' @@ -217,6 +235,9 @@
  isccopts.append('/F"TortoiseHg-%s-hg-%s"' % (thgtag, hgtag))   isccopts.append('/DVERSION=' + thgtag)   elif opt == '--thg-nightly': + for r in ('tortoisehg', 'hg-stable', 'hgfold'): + checkrepo(r) + checkrepo('asciidoc', '8.2.6')   if dopull is None:   dopull = True   buildthg = True @@ -227,23 +248,28 @@
  isccopts.append('/F"TortoiseHg-Nightly-%s"' % getdate())   isccopts.append('/DVERSION=' + getdate())   elif opt == '--thg-unstable': + for r in ('tortoisehg', 'hg-main', 'hgfold', 'hgcr-gui'): + checkrepo(r)   if dopull is None:   dopull = True   buildthg = True   thgbranch = 'default'   thgtag = 'tip' - hgurl = 'http://selenic.com/repo/hg/'   hgbranch = 'hg-main'   hgtag = 'tip'   isccopts.append('/F"TortoiseHg-Unstable-%s"' % getdate())   isccopts.append('/DVERSION=' + getdate())   elif opt == '--hg-release': + checkrepo('hg-stable') + checkrepo('asciidoc', '8.2.6')   buildhg = True   hgbranch = 'hg-stable'   hgtag = lasttag(hgbranch)   isccopts.append('/F"Mercurial-%s"' % (hgtag))   isccopts.append('/DVERSION=' + hgtag)   elif opt == '--hg-nightly': + checkrepo('hg-stable') + checkrepo('asciidoc', '8.2.6')   if dopull is None:   dopull = True   buildhg = True @@ -252,10 +278,10 @@
  isccopts.append('/F"Mercurial-Nightly-%s"' % getdate())   isccopts.append('/DVERSION=' + getdate())   elif opt == '--hg-unstable': + checkrepo('hg-main')   if dopull is None:   dopull = True   buildhg = True - hgurl = 'http://selenic.com/repo/hg/'   hgbranch = 'hg-main'   hgtag = 'tip'   isccopts.append('/F"Mercurial-Unstable-%s"' % getdate()) @@ -276,16 +302,16 @@
   if buildhg:   if dopull: - run(r'hg -R %s pull %s' % (hgbranch, hgurl)) + run(r'hg -R %s pull %s' % (hgbranch, URL[hgbranch]))   build_hg(forcehg, hgbranch, hgtag)   build_hg_installer(isccopts)  elif buildthg:   if dopull: - run(r'hg -R %s pull %s' % (hgbranch, hgurl)) - run(r'hg -R tortoisehg pull %s' % thgurl) + run(r'hg -R %s pull %s' % (hgbranch, URL[hgbranch])) + run(r'hg -R tortoisehg pull %s' % URL['tortoisehg'])   build_hg(forcehg, hgbranch, hgtag)   build_thg(forcethg, thgbranch, thgtag)   build_thg_installer(isccopts)  elif dopull: - run(r'hg -R %s pull %s' % (hgbranch, hgurl)) - run(r'hg -R tortoisehg pull %s' % thgurl) + run(r'hg -R %s pull %s' % (hgbranch, URL[hgbranch])) + run(r'hg -R tortoisehg pull %s' % URL['tortoisehg'])