Ticket #4410 (closed defect: fixed)
Browsing empty hg repo results in error
| Reported by: | thatch | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11 |
| Component: | version control | Version: | none |
| Severity: | normal | Keywords: | mercurial |
| Cc: |
Description
I assume this is the right place to enter this ticket, as the th:TracMercurialPlugin doesn't host any of the code.
I am running trac from trunk and the Mercurial plugin from svn at http://svn.edgewall.com/repos/trac/sandbox/mercurial-plugin-0.11 installed as a systemwide egg. I did not previously have the mercurial plugin for Trac installed, so I am sure it is clean.
I ran
hg init /var/hg/demo2
and the relevant portions of trac.ini are:
[trac] repository_dir = /var/hg/demo2 repository_type = hg [components] tracext.hg.* = enabled
I get the following error visiting /browser on this new instance, which has no revisions:
Internal Error unknown revision '-1:000000000000'
There is no traceback, and nothing interesting in the log with level set to DEBUG.
After making at least one revision-thingy, it behaves as expected.


