Submitter | phabricator |
---|---|
Date | May 15, 2019, 3:46 p.m. |
Message ID | <f10cd8dfb8c5784cad50864e3f49a823@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/40039/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/contrib/automation/hgautomation/windows.py b/contrib/automation/hgautomation/windows.py --- a/contrib/automation/hgautomation/windows.py +++ b/contrib/automation/hgautomation/windows.py @@ -156,6 +156,10 @@ fh.write(' UserKnownHostsFile %s\n' % (ssh_dir / 'known_hosts')) fh.write(' IdentityFile %s\n' % (ssh_dir / 'id_rsa')) + if not (hg_repo / '.hg').is_dir(): + raise Exception('%s is not a Mercurial repository; ' + 'synchronization not yet supported' % hg_repo) + env = dict(os.environ) env['HGPLAIN'] = '1' env['HGENCODING'] = 'utf-8'