site /

Filename Size Date modified Message
1.7 KB
19.1 KB
hg site

Create and/or upload a static copy of the repository.

You can get it via `hg clone`

The main goal is sharing Mercurial on servers with only FTP access and
statically served files, while providing the same information as hg
serve and full solutions like bitbucket and gitorious (naturally
without the interactivity).

Only changed files are uploaded, based on the time they were last
modified, so uploads can be reasonably fast.


* Clone this repo.
  hg clone
* add this to the [extensions] section in your ~/.hgrc
  site = path/to/
  if you have no [extensions] section, add it.


$ hg site [-n sitename] -u
→ that’s how this site gets created.

To upload the site when you push, you can use a hook in .hg/hgrc. This is what I use: 

    post-push = hg site -n site -u

$ hg site --help
hg site [options] [folder]

Create a static copy of the repository and/or upload it to an FTP server.

use "hg help -e site" to show help for the site extension


 -n --name VALUE         the repo name. Default: folder or last segment of the
 -u --upload VALUE       upload the repo to the given ftp host. Format:
 -f --force              force recreating all commit files. Slow.
 -s --screenstyle VALUE  use a custom stylesheet for display on screen
 -p --printstyle VALUE   use a custom stylesheet for printing
    --mq                 operate on patch repository

use "hg -v help site" to show global options

Related: git2html →
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.