Mercurial > mozilla > hg > MozillaTry
comparison mozillatry.py @ 28:faacdfcd8ac9
https://wiki.mozilla.org/Build:TryServer#hg_phases
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 10 Dec 2012 11:52:30 -0800 |
parents | bd358da5c346 |
children | ade4262c1c6d |
comparison
equal
deleted
inserted
replaced
27:bd358da5c346 | 28:faacdfcd8ac9 |
---|---|
20 assert os.path.exists(hg_dir) and os.path.isdir(hg_dir) | 20 assert os.path.exists(hg_dir) and os.path.isdir(hg_dir) |
21 patches = os.path.join(hg_dir, 'patches') | 21 patches = os.path.join(hg_dir, 'patches') |
22 if os.path.exists(patches): | 22 if os.path.exists(patches): |
23 shutil.rmtree(patches) | 23 shutil.rmtree(patches) |
24 call(['hg', 'revert', '--no-backup', '--all'], cwd=directory) | 24 call(['hg', 'revert', '--no-backup', '--all'], cwd=directory) |
25 try: | |
26 # XXX stupid; see | |
27 # https://wiki.mozilla.org/Build:TryServer#hg_phases | |
28 call(['hg', 'phase', '-f', '--draft', 'qbase:tip'], cwd=directory) | |
25 call(['hg', 'qpop', '--all'], cwd=directory) | 29 call(['hg', 'qpop', '--all'], cwd=directory) |
26 try: | 30 try: |
27 shutil.rmtree(os.path.join(hg_dir, 'patches')) # remove patches | 31 shutil.rmtree(os.path.join(hg_dir, 'patches')) # remove patches |
28 except: | 32 except: |
29 pass | 33 pass |