Mercurial > mozilla > hg > MozillaTry
comparison mozillatry.py @ 34:9d8dce82166e
suggestion from edmorley
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 08 Jan 2013 14:09:17 -0800 |
parents | 915e064f2910 |
children | 61d2bb7a3ca0 |
comparison
equal
deleted
inserted
replaced
33:915e064f2910 | 34:9d8dce82166e |
---|---|
21 assert os.path.exists(directory) and os.path.isdir(directory) | 21 assert os.path.exists(directory) and os.path.isdir(directory) |
22 hg_dir = os.path.join(directory, '.hg') | 22 hg_dir = os.path.join(directory, '.hg') |
23 assert os.path.exists(hg_dir) and os.path.isdir(hg_dir) | 23 assert os.path.exists(hg_dir) and os.path.isdir(hg_dir) |
24 | 24 |
25 try: | 25 try: |
26 call(['hg', 'revert', '--no-backup', '--all'], cwd=directory) | 26 call(['hg', 'update', '-r', 'tip', '--clean'], cwd=directory) |
27 try: | 27 try: |
28 # XXX stupid; see | 28 # XXX stupid; see |
29 # https://wiki.mozilla.org/Build:TryServer#hg_phases | 29 # https://wiki.mozilla.org/Build:TryServer#hg_phases |
30 call(['hg', 'phase', '-f', '--draft', 'qbase:tip'], cwd=directory) | 30 call(['hg', 'phase', '-f', '--draft', 'qbase:tip'], cwd=directory) |
31 except subprocess.CalledProcessError: | 31 except subprocess.CalledProcessError: |