serve: pass on the repo instad of recreating it in hgweb
authorSimon Heimberg <simohe@besonet.ch>
Thu, 21 Mar 2013 18:16:49 +0100
changeset 18828 b718999f2e0b
parent 18827 6793ae6e36dc
child 18829 8843182f3514
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.
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)