Edgewall Software

Ticket #4410 (closed defect: fixed)

Opened 3 years ago

Last modified 2 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:

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

Changed 3 years ago by cboos

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

Changed 2 years ago by cboos

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to none

Forgot to close the issue after r4465.

Changed 2 years ago by anonymous

  • milestone changed from none to 0.11

set the milestone to 0.11 as it concerns plugin for 0.11

Add/Change #4410 (Browsing empty hg repo results in error)

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.