Mercurial > mozilla > hg > MozillaTry
changeset 33:915e064f2910
comments
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 26 Dec 2012 14:45:50 -0800 |
parents | daf7c333e01c |
children | 9d8dce82166e |
files | mozillatry.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mozillatry.py Tue Dec 11 21:04:26 2012 -0800 +++ b/mozillatry.py Wed Dec 26 14:45:50 2012 -0800 @@ -14,6 +14,8 @@ from subprocess import check_call as call +### methods for hg + def reset(directory): """reset an hg directory to a good state""" assert os.path.exists(directory) and os.path.isdir(directory) @@ -45,6 +47,9 @@ call(['hg', 'update'], cwd=directory) call(['hg', 'qinit'], cwd=directory) + +### methods for try + def push_to_try(patches, repo, commit, _try='ssh://hg.mozilla.org/try/', update=True): """push a series of patches to try repository"""