Bug 1203796 - Remove the trychooser syntax commit if pushing to the try server fails; r=chmanchester

This commit is contained in:
Ehsan Akhgari 2015-09-10 21:04:55 -04:00
parent a93bb88d6b
commit 0dd6e1a82a

View File

@ -99,9 +99,11 @@ class AutoTry(object):
def _git_push_to_try(self, msg):
self._run_git('commit', '--allow-empty', '-m', msg)
self._run_git('push', 'hg::ssh://hg.mozilla.org/try',
'+HEAD:refs/heads/branches/default/tip')
self._run_git('reset', 'HEAD~')
try:
self._run_git('push', 'hg::ssh://hg.mozilla.org/try',
'+HEAD:refs/heads/branches/default/tip')
finally:
self._run_git('reset', 'HEAD~')
def push_to_try(self, msg, verbose):
if not self._use_git: