Edgewall Software

Opened 6 years ago

Closed 6 years ago

#8685 closed defect (fixed)

Emptied repository results in a browser error

Reported by: mikei@… Owned by: Christian Boos
Priority: normal Milestone: not applicable
Component: plugin/mercurial Version: none
Severity: normal Keywords:
Release Notes:
API Changes:


Steps to recreate:

  1. Start with a new repository
  1. Create a file, add it, commit and push
  1. Remove the file, commit and push
  1. Go to the /browser (click the Browse Source tab)
  1. Observe an error:

Error: No such node No node at revision 1:36b97207408f


The offender is the _init_path function not handling empty repositories properly. (http://trac.edgewall.org/browser/sandbox/mercurial-plugin/tracvc/hg/backend.py)

The attached patch (aganst r8365) adds a check for an empty manifest array.

Attachments (1)

mercurial-plugin-backend-empty-repo.patch (2.2 KB) - added by anonymous 6 years ago.

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by anonymous

comment:1 Changed 6 years ago by Christian Boos

  • Milestone set to not applicable

I'll look into this.

comment:2 Changed 6 years ago by Christian Boos

  • Resolution set to fixed
  • Status changed from new to closed

I've committed a simpler patch in r8663. Thanks!

Modify Ticket

Change Properties
Set your email in Preferences
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.