远程Mercurial没有安装Mercurial

Bot*_*tto 2 ssh mercurial

我有一个ssh服务器,我想用作中央仓库.但是我无法在其上安装mercurial.因此,客户端如何通过ssh推送到服务器而无需在服务器上安装mercurial.

谢谢

pyf*_*unc 5

您不必在该服务器上安装mercurial.如果您可以挂载它,那么您可以通过提供"hg init"的路径来创建一个常规存储库,以便在此远程服务器上创建存储库.

另一种方式是sshfs.这是基于SSH文件传输协议的文件系统客户端.

所以使用它你可以做到

sshfs hostname: mountpoint # mounts the file system
hg init mountpoint # do your mercurial operation
fusermount -u mountpoint # unmounts the file system
Run Code Online (Sandbox Code Playgroud)

我没有这样做,但你可以尝试一下.