Bug 1903175 - Skip long pause at the end of mach try when using git. r=sheehan

Differential Revision: https://phabricator.services.mozilla.com/D214061
This commit is contained in:
Mike Hommey 2024-06-18 07:23:38 +00:00
parent 3bc239f6cc
commit 8aeb63ed6c
2 changed files with 7 additions and 0 deletions

View File

@ -877,6 +877,11 @@ class GitRepository(Repository):
try:
cmd = (
str(self._tool),
"-c",
# Never store git-cinnabar metadata for pushes to try.
# Normally git-cinnabar asks the server what the phase of what it pushed
# is, and figures on its own, but that request takes a long time on try.
"cinnabar.data=never",
"push",
"hg::ssh://hg.mozilla.org/try",
"+HEAD:refs/heads/branches/default/tip",

View File

@ -44,6 +44,8 @@ def test_push_to_try(repo, monkeypatch):
),
(
str(tool),
"-c",
"cinnabar.data=never",
"push",
"hg::ssh://hg.mozilla.org/try",
"+HEAD:refs/heads/branches/default/tip",