Mercurial: Difference between revisions

Jump to navigation Jump to search
8 bytes removed ,  12 April 2011
m
no edit summary
(changed filepath for hgweb.cgi)
mNo edit summary
Line 15: Line 15:
   receive@murphy (~/public_html) %  chmod 711 hg
   receive@murphy (~/public_html) %  chmod 711 hg
   receive@murphy (~/public_html) %  cd hg
   receive@murphy (~/public_html) %  cd hg
   receive@murphy (~/public_html/hg) %  cp /usr/share/doc/mercurial-common/examples/hgweb.cgi .
   receive@murphy (~/public_html/hg) %  cp /usr/share/doc/mercurial-common/examples/hgweb.cgi ./index.cgi
   receive@murphy (~/public_html/hg) %  chmod 755 hgweb.redbrick.cgi
   receive@murphy (~/public_html/hg) %  chmod 755 index.cgi


=== Step 2 - Set the repo location ===
=== Step 2 - Set the repo location ===


Open the hgweb.redbrick.cgi in nano (or any other text editor) and on the second to last line replace /YOUR/HOME/DIR/YOUR/REPO with the location of the repo you created. For me, this is /home/member/r/receive/hgrepo - the location will depend on where your home directory is. Optionally, replace "repository name" with something cooler.
Open the index.cgi in nano (or any other text editor) and on the second to last line replace /YOUR/HOME/DIR/YOUR/REPO with the location of the repo you created. For me, this is /home/member/r/receive/hgrepo - the location will depend on where your home directory is. Optionally, replace "repository name" with something cooler.


=== Step 3 - Set Up htaccess ===
=== Step 3 - Set Up htaccess ===
33

edits

Navigation menu