Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#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 Christian Boos, 17 years ago

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).

comment:2 by Christian Boos, 17 years ago

Milestone: none
Resolution: fixed
Status: newclosed

Forgot to close the issue after r4465.

comment:3 by anonymous, 17 years ago

Milestone: none0.11

set the milestone to 0.11 as it concerns plugin for 0.11

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.