Hello everybody,

I am working on improving the web2py web interface to mercurial. 

http://127.0.0.1:8000/admin/mercurial/commit

We can current create a repo, commit and get changelog but I cannot figure out 
how to do revert.
Here is the code I have:

   import os
   uio = ui.ui()
   uio.quiet = True
   if not os.environ.get('HGUSER') and not uio.config("ui", "username"):
       os.environ['HGUSER'] = 'web...@localhost'
   try:
       repo = hg.repository(ui=uio, path=path)
   except:
       repo = hg.repository(ui=uio, path=path, create=True)

given repo and a revision number from repo.changelog, how to I revert all files 
to that revision using the API?

Massimo

Reply via email to