(Arne Babenhauserheide)
2011-11-24: show the first 5 lines of the README instead of 3 (so people can put releases 0.1.1 show the first 5 lines of the README instead of 3 (so people can put a description and a clone URL into it.
diff --git a/README.txt b/README.txt --- a/README.txt +++ b/README.txt @@ -2,6 +2,8 @@ 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 diff --git a/site.py b/site.py --- a/site.py +++ b/site.py @@ -97,7 +97,7 @@ def writeoverview(ui, repo, target, name for f in os.listdir(repo.root): if f.lower().startswith("readme"): readme = parsereadme(f) - overview += "\n".join(readme.splitlines()[:3]) + overview += "\n".join(readme.splitlines()[:5]) break # now the links to the log and the files. overview += "</pre>\n<p><a href='commits'>changelog</a> | <a href='src/" + repo["tip"].hex() + "/'>files</a></p>"