Hi, I just tried hatta-dev on Ubuntu 8.10, and I get some errors:
- mercurial.match doesn't exist: missing "import mercurial.match"?
- self response: hatta-dev requires Mercurial 1.1+ whereas Ubuntu 8.10 includes only Mercurial 1.0.1 :-/
- I tried to create the "Home" page, but I get an error. If I retry, I get another error because the file is already tracked but also because access to sys.stdout is restricted by wsgi:
Traceback (most recent call last):
...
File "hatta.py", line 233, in new_func
try:
File "hatta.py", line 356, in save_file
except mercurial.revlog.LookupError:
File ".../mercurial/localrepo.py", line 1115
self.ui.warn(_("%s already tracked!\\n") % f)
File ".../mercurial/ui.py", line 445, in warn
self.write_err(*msg)
File ".../mercurial/ui.py", line 388, in write_err
if not sys.stdout.closed: sys.stdout.flush()
IOError: sys.stdout access restricted by mod_wsgi
See also: http://mercurial.selenic.com/bts/issue1095
Thank you, I added that WSGI stdout workaround in development version. Also thank you for updating the Install page, I didn't test Mercurial 1.0 after including the fixes necessary for Mercurial 1.3. There are three possible things that could be done with the changing API of Mercurial:
- Always use the latest and greatest version of Mercurial. Bundle it with Hatta (enabling the pure-python implementation of bdiff and such), so that users don't have problems with dependencies.
- Add try-except clauses for every API incompatibility they introduce, keep testing it with all released versions.
- Something in between, only supporting the most popular versions.
I'm really too short on resources at the moment to keep testing all versions. On the other hand, it can be largely automated. Interactions with Mercurial are not that numerous, and I think most of them are at least partially covered with tests now. I only need some time to setup testing environments for different versions of Mercurial…
On the other hand, bundling Mercurial seems like a solution giving the best results with the least effort… Of course, Hatta won't be a single-file then, it'd need at least two files in the best case – when all the dependencies are zipped. I need to think about it. – Radomir Dopieralski
I made the development version work with Mercurial 1.0 again, and also applied the workaround for mod_wsgi. Please let me know if there are any other problems. – Radomir Dopieralski
![[Home]](/+download/logo.png)