history_db plugin causes "bzr tags" to error out if there is a tag pointing to a revision not in the ancestry
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar History DB Plugin |
Confirmed
|
High
|
Unassigned |
Bug Description
Running "bzr tags" in the Emacs repository errors out with this message:
bzr: ERROR: rev_id {<email address hidden>} not in database
If I use --no-plugins, the problem disappears. I was told that this is a problem with the history_db plugin.
Here's the backtrace:
15.797 Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "D:/usr/
File "D:/usr/
BzrError: rev_id {<email address hidden>} not in database
affects: | bzr → bzr-history-db |
Changed in bzr-history-db: | |
importance: | Undecided → High |
status: | New → Confirmed |
summary: |
- history_db plugin causes "bzr tags" to error out + history_db plugin causes "bzr tags" to error out if there is a tag + pointing to a revision not in the ancestry |
This only happens for branches which have tags which point at revisions that are not in the ancestry.
I think the issue is that "Branch. revision_ id_to_dotted_ revno(' no-such- rev')" raises errors. NoSuchRevision, but history-db's implementation raises errors.BzrError. We just need to match the exception type, and I think the code will work.