Ticket #4410 (closed defect: fixed)
Opened 5 years ago
Last modified 5 years ago
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: | |||
| Release Notes: | |||
| API Changes: | |||
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.
Attachments
Change History
comment:1 Changed 5 years ago by cboos
comment:2 Changed 5 years ago by cboos
- Milestone set to none
- Resolution set to fixed
- Status changed from new to closed
Forgot to close the issue after r4465.
comment:3 Changed 5 years ago by anonymous
- Milestone changed from none to 0.11
set the milestone to 0.11 as it concerns plugin for 0.11



Should be fixed by r4465.
I also tried to see how we could more explicitly inform the user that the repository is empty, but found no easy way. I hope it's ok like that (i.e. showing an empty listing).