I finally got to the bottom of this. It is fixed in trunk. Trunk has some experimental stuff you do not want but if you just get this file:
applications/admin/controllers/mercurial.py the problem should be gone. On May 2, 8:45 pm, ehgonzalez <ehgonzale...@gmail.com> wrote: > Hello, > > When I'm trying to use Versioning (mercurial) but I get an a ticket > error: > > Traceback (most recent call last): > File "/var/www/web2py/gluon/restricted.py", line 181, in restricted > exec ccode in environment > File "/var/www/web2py/applications/admin/controllers/mercurial.py", > line > 75, in <module> > File "/var/www/web2py/gluon/globals.py", line 133, in <lambda> > self._caller = lambda f: f() > File "/var/www/web2py/applications/admin/controllers/mercurial.py", > line > 47, in commit > files = TABLE(*[TR(file) for file in > repo[repo.lookup('.')].files()]) > File "/var/lib/python-support/python2.5/mercurial/localrepo.py", > line 443, > in lookup > raise repo.RepoError(_("no revision checked out")) > RepoError: no revision checked out > > My prod environment is: > > Debian 5.0 Lenny AMD64 > Python 2.5.2 > Mercurial 1.0.1 > Web2py 1.95.1 > > I use Ubuntu for development (desktop) but everything works Ok! > > My dev environment: > Ubuntu 10.04 32bits > Python 2.6.5 > Mercurial 1.4.3 > Web2py 1.95.1 > > What's wrong? Software versions?