##// END OF EJS Templates
automation: allow exit code of 1 for `hg push`...
Gregory Szorc -
r42884:24cd5b0b stable
parent child Browse files
Show More
@@ -489,7 +489,11 b' def synchronize_hg(source_path: pathlib.'
489 489 'ssh://%s//hgwork/src' % public_ip,
490 490 ]
491 491
492 subprocess.run(args, cwd=str(source_path), env=env, check=True)
492 res = subprocess.run(args, cwd=str(source_path), env=env)
493
494 # Allow 1 (no-op) to not trigger error.
495 if res.returncode not in (0, 1):
496 res.check_returncode()
493 497
494 498 # TODO support synchronizing dirty working directory.
495 499
@@ -180,7 +180,11 b' def synchronize_hg(hg_repo: pathlib.Path'
180 180 'ssh://%s/c:/hgdev/src' % public_ip,
181 181 ]
182 182
183 subprocess.run(args, cwd=str(hg_repo), env=env, check=True)
183 res = subprocess.run(args, cwd=str(hg_repo), env=env)
184
185 # Allow 1 (no-op) to not trigger error.
186 if res.returncode not in (0, 1):
187 res.check_returncode()
184 188
185 189 run_powershell(winrm_client,
186 190 HG_UPDATE_CLEAN.format(revision=full_revision))
General Comments 0
You need to be logged in to leave comments. Login now