Modify ↓
Opened 4 years ago
Closed 4 years ago
#8685 closed defect (fixed)
Emptied repository results in a browser error
| Reported by: | mikei@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | not applicable |
| Component: | plugin/mercurial | Version: | none |
| Severity: | normal | Keywords: | |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
Steps to recreate:
- Start with a new repository
- Create a file, add it, commit and push
- Remove the file, commit and push
- Go to the /browser (click the Browse Source tab)
- 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)
Change History (3)
Changed 4 years ago by anonymous
comment:1 Changed 4 years ago by cboos
- Milestone set to not applicable
comment:2 Changed 4 years ago by cboos
- Resolution set to fixed
- Status changed from new to closed
I've committed a simpler patch in r8663. Thanks!
Note: See
TracTickets for help on using
tickets.



I'll look into this.