# HG changeset patch # User Jeff Hammel # Date 1356561950 28800 # Node ID 915e064f291085bba3d4440b9f7a8ba63e732f24 # Parent daf7c333e01c8dbae091446e0035d801cf3aaeca comments diff -r daf7c333e01c -r 915e064f2910 mozillatry.py --- 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"""