Mercurial > public > mercurial-scm > hg
comparison contrib/automation/hgautomation/windows.py @ 42282:5c242c427897
automation: do a force push to synchronize
We don't know what the state of the remote is. Force pushing will
be more resilient.
Differential Revision: https://phab.mercurial-scm.org/D6316
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 19 Apr 2019 08:32:24 -0700 |
parents | 4274b1369b75 |
children | 862f6bddacce |
comparison
equal
deleted
inserted
replaced
42281:4274b1369b75 | 42282:5c242c427897 |
---|---|
174 | 174 |
175 args = [ | 175 args = [ |
176 'python2.7', hg_bin, | 176 'python2.7', hg_bin, |
177 '--config', 'ui.ssh=ssh -F %s' % ssh_config, | 177 '--config', 'ui.ssh=ssh -F %s' % ssh_config, |
178 '--config', 'ui.remotecmd=c:/hgdev/venv-bootstrap/Scripts/hg.exe', | 178 '--config', 'ui.remotecmd=c:/hgdev/venv-bootstrap/Scripts/hg.exe', |
179 'push', '-r', full_revision, 'ssh://%s/c:/hgdev/src' % public_ip, | 179 'push', '-f', '-r', full_revision, |
180 'ssh://%s/c:/hgdev/src' % public_ip, | |
180 ] | 181 ] |
181 | 182 |
182 subprocess.run(args, cwd=str(hg_repo), env=env, check=True) | 183 subprocess.run(args, cwd=str(hg_repo), env=env, check=True) |
183 | 184 |
184 run_powershell(winrm_client, | 185 run_powershell(winrm_client, |