Modify ↓
Opened 14 years ago
Closed 14 years ago
#8685 closed defect (fixed)
Emptied repository results in a browser error
| Reported by: | Owned by: | Christian Boos | |
|---|---|---|---|
| Priority: | normal | Milestone: | not applicable |
| Component: | plugin/mercurial | Version: | none |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal 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)
by , 14 years ago
| Attachment: | mercurial-plugin-backend-empty-repo.patch added |
|---|
comment:1 by , 14 years ago
| Milestone: | → not applicable |
|---|
comment:2 by , 14 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
I've committed a simpler patch in r8663. Thanks!
Note:
See TracTickets
for help on using tickets.



I'll look into this.