##// END OF EJS Templates
automation: add check that hg source directory is a repo...
Gregory Szorc -
r42467:4274b136 default
parent child Browse files
Show More
@@ -156,6 +156,10 b' def synchronize_hg(hg_repo: pathlib.Path'
156 fh.write(' UserKnownHostsFile %s\n' % (ssh_dir / 'known_hosts'))
156 fh.write(' UserKnownHostsFile %s\n' % (ssh_dir / 'known_hosts'))
157 fh.write(' IdentityFile %s\n' % (ssh_dir / 'id_rsa'))
157 fh.write(' IdentityFile %s\n' % (ssh_dir / 'id_rsa'))
158
158
159 if not (hg_repo / '.hg').is_dir():
160 raise Exception('%s is not a Mercurial repository; '
161 'synchronization not yet supported' % hg_repo)
162
159 env = dict(os.environ)
163 env = dict(os.environ)
160 env['HGPLAIN'] = '1'
164 env['HGPLAIN'] = '1'
161 env['HGENCODING'] = 'utf-8'
165 env['HGENCODING'] = 'utf-8'
General Comments 0
You need to be logged in to leave comments. Login now