testsitepush1

hg site

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

You can get it via `hg clone http://draketo.de/proj/hgsite/`

Changes (full changelog)

(Arne Babenhauserheide)
2012-06-24: rename site.py to staticsite.py to avoid import conflicts with the tip

rename site.py to staticsite.py to avoid import conflicts with the python site module. Also add FTP push support.

(Arne Babenhauserheide)
2012-06-24: rename to staticsite.py to avoid clashing with `import site`,

rename to staticsite.py to avoid clashing with `import site`,

(arne)
2012-06-04: TODO: incoming and outgoing still breaks for remote repos..

TODO: incoming and outgoing still breaks for remote repos..

(arne)
2012-06-04: Added a diffstat for every commit.

Added a diffstat for every commit.

Branches

(Arne Babenhauserheide)
releases: merge release 0.1.3 2011-11-24

merge release

Bookmarks

(Arne Babenhauserheide)
testing-bookmark-display: branch+tag+bookmarks bug resolved 2011-11-24

branch+tag+bookmarks bug resolved

Readme

hg site

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

You can get it via `hg clone http://draketo.de/proj/hgsite/`

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.

Install:

* Clone this repo.
  hg clone http://draketo.de/proj/hgsite/
* add this to the [extensions] section in your ~/.hgrc
  site = path/to/staticsite.py
  if you have no [extensions] section, add it.

Usage:

$ hg site [-n sitename] -u user:password@ftp.host.tld/path/to/dir
→ 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: 

    [hooks]
    post-push = hg site -n site -u user:password@ftp.host.tld/path/to/dir


$ 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

options:

 -n --name VALUE         the repo name. Default: folder or last segment of the
                         repo-path.
 -u --upload VALUE       upload the repo to the given ftp host. Format:
                         user:password@host/path/to/dir
 -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 → http://hssl.cs.jhu.edu/~neal/git2html/