SSH 越しでローカルのリポジトリをリモートにコピーする
形式
% hg clone ssh://username@remotehost:portnumber/path/to/repos
サンプル
% hg clonse ssh://littlebuddha@example.com:5124/works/repos
リモートサーバー側では
リポジトリのコピーを終えて、リポジトリをコピーしたはずのディレクトリに移動してみる。
% cd ~/works/repos/ % ls -la total 0 . .. .hg
あれ?ローカルにあったはずのファイルがない…。そこで、
% hg update resolving manifests getting model/login.pl getting model/user.pl getting view/index.html getting view/login/index.html ...
hg update を実行するとファイルが取り出されて、ローカルにあったリポジトリ通りのディレクトリとファイル構成が展開される。