Mercurial-server
Contents |
Useful Links
https://web.archive.org/web/20131127081747/http://dev.lshift.net/paul/mercurial-server/docbook.html
As root
apt-get install mercurial-server cp ~${USER}/.ssh/id_rsa.pub /etc/mercurial-server/root/${USER} sed -re '/^write user=users\/\*\*/d' -i /etc/mercurial-server/access.conf sudo -u hg /usr/share/mercurial-server/refresh-auth
As ${USER}
hg clone ssh://${USER}@localhost/hgadmin cd hgadmin mkdir -p keys/root keys/users cat <<EOF > access.conf # template: # this will prevent external/3rd party developers from merging or writing to the release branch # releases must be made by internal developers # #write repo=therepo user=internal/** #read repo=therepo user=external/** branch=release #write repo=therepo user=external/** # this should be LAST read user=internal/** EOF hg add hg ci -m "initial commit" hg push
Update the user accounts
You should really access the hgadmin repo via SSH, but if you modify it directly, then run the following to refresh the user details
Invalid language.
You need to specify a language like this: <source lang="html4strict">...</source>
Supported languages for syntax highlighting:
abap, actionscript, actionscript3, ada, apache, applescript, apt_sources, asm, asp, autoit, bash, basic4gl, blitzbasic, bnf, boo, c, c_mac, caddcl, cadlisp, cfdg, cfm, cil, cobol, cpp, cpp-qt, csharp, css, d, delphi, diff, div, dos, dot, eiffel, fortran, freebasic, genero, gettext, glsl, gml, gnuplot, groovy, haskell, html4strict, idl, ini, inno, io, java, java5, javascript, kixtart, klonec, klonecpp, latex, lisp, lotusformulas, lotusscript, lua, m68k, matlab, mirc, mpasm, mxml, mysql, nsis, objc, ocaml, ocaml-brief, oobas, oracle8, pascal, per, perl, php, php-brief, plsql, powershell, python, qbasic, rails, reg, robots, ruby, sas, scala, scheme, sdlbasic, smalltalk, smarty, sql, tcl, text, thinbasic, tsql, vb, vbnet, verilog, vhdl, visualfoxpro, winbatch, xml, xorg_conf, xpp, z80