1.cd ~/ #move to home directory 2.mkdir package #create a directory to hold mercurial 3.cd package #enter the diectory 4.wget http://mercurial.selenic.com/release/mercurial-1.7.5.tar.gz #download mercurial,always get the latest version 5.tar zxf mercurial-1.7.5.tar.gz #extract the files 6.cd mercurial-1.7.5 #enter mercurial dir 7.make local #make 8.~/.hgrc #create this main hgrc config file and add an user [ui] ... 9.hg debuginstall #install 10.~/.bash_profile #edit your profile and setup the $PATH to you hg file so you don't have to write the entire path each time 11.edit your local .hgrc file by adding [ui] remotecmd = path_to_remote_hg_exec #you will need to tell your local repository where is the external hg located
Install Mercurial on a shared account
Feb 19th, 2011 by admin