Hosting Mercurial Shared Repositories Error When Upgrading to Mercurial 1.8
Posted 9 months ago on May 26, 2011
My team recently upgraded the version of Mercurial we are using to 1.8. The biggest draw for me was the completely revamped TortoiseHg workbench.
Along with Mercurial we are using the shared repository hosting application that ships with the product. When we pushed a new repository created with Mercurial 1.8 and pushed to the server that had 1.5 installed we saw an error when viewing the page generated by the hgwebdir.cgi script:
wsgicgi.launch(application) File "mercurial\hgweb\wsgicgi.pyc", line 72, in launch File "mercurial\util.pyc", line 231, in increasingchunks c File "mercurial\templater.pyc", line 60, in process File "mercurial\templater.pyc", line 79, in _format File "mercurial\hgweb\hgwebdir_mod.pyc", line 238, in entries File "mercurial\hg.pyc", line 82, in repository File "mercurial\localrepo.pyc", line 2220, in instance File "mercurial\localrepo.pyc", line 74, in __init__ mercurial. error.RepoError: requirement 'dotencode' not supported
It's been a year since I setup the HG server on my IIS 6 Windows server 2003 box, and I remember it being a little touchy. At that time I was using this walkthrough. There may be/probably is a better walkthrough available by this time. Due to my travails in setting up the server initially I thought upgrading the server would be a pain. Thankfully not so.
Upgrade Steps
First thing I'd do is back up the virtual directory for the current setup. For me that was C:\Inetpub\hgcgi\.
Now delete the mercurial folder (highlighted above).
Next, find your installation path for Mercurial 1.8. Mine was in C:\Program Files\Mercurial. (Before I installed 1.8 I uninstalled the earlier version.) Inside the Mercurial directory unzip the library.zip file.
Inside the library folder find the mercurial folder:
Now just copy the mercurial folder from the installation of 1.8 into your virtual directory underneath the "hgcgi" directory.
That is as simple as it was for me to upgrade.
Comments
New Comment