# HG changeset patch # User Simon Heimberg # Date 1363886209 -3600 # Node ID b718999f2e0b8709d05bae5dd7353746a576d3dc # Parent 6793ae6e36dce55ae26d4ad61bcec06bfb59d2dc serve: pass on the repo instad of recreating it in hgweb When we pass on the path to the repo, the repo is created in hgweb. But the repo is already here, so pass it on. diff -r 6793ae6e36dc -r b718999f2e0b mercurial/commands.py --- a/mercurial/commands.py Thu Mar 21 18:16:48 2013 +0100 +++ b/mercurial/commands.py Thu Mar 21 18:16:49 2013 +0100 @@ -5091,7 +5091,7 @@ if not repo: raise error.RepoError(_("there is no Mercurial repository" " here (.hg not found)")) - o = repo.root + o = repo app = hgweb.hgweb(o, baseui=baseui)