branch | stable |
changeset 42660 | 24cd5b0ba5b3 |
parent 42285 | 65b3ef162b39 |
child 42684 | 9e0f1c80cddb |
--- a/contrib/automation/hgautomation/linux.py Thu Jul 25 21:28:29 2019 +0900 +++ b/contrib/automation/hgautomation/linux.py Sun Jul 28 18:16:08 2019 -0700 @@ -489,7 +489,11 @@ 'ssh://%s//hgwork/src' % public_ip, ] - subprocess.run(args, cwd=str(source_path), env=env, check=True) + res = subprocess.run(args, cwd=str(source_path), env=env) + + # Allow 1 (no-op) to not trigger error. + if res.returncode not in (0, 1): + res.check_returncode() # TODO support synchronizing dirty working directory.