#4410 closed defect (fixed)
Browsing empty hg repo results in error
Reported by: | Tim Hatch | Owned by: | Christian Boos |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | version control | Version: | none |
Severity: | normal | Keywords: | mercurial |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal 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 (0)
Change History (3)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
Milestone: | → none |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Forgot to close the issue after r4465.
comment:3 by , 18 years ago
Milestone: | none → 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).