UnknownFormatError should tell the URL to that bzrdir

Bug #583257 reported by Alexander Belchenko
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

I have some disk failure on the server, as result format file of .bzr was truncated to 0 bytes. Trac unable to provide timeline, and `bzr branches` command is also failed with the same error:

bzr: ERROR: Unknown bzrdir format: ''

Unfortunately there is not much info where is actually broken bzrdir located.

Please, add the URL of the bzrdir to the error message, so it will be much easier to find a broken branch.

Revision history for this message
Vincent Ladeuil (vila) wrote :

Please provide a traceback so we know where to add the missing URL :)

Changed in bzr:
status: New → Incomplete
Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 583257] Re: UnknownFormatError should tell the URL to that bzrdir

Vincent Ladeuil пишет:
> Please provide a traceback so we know where to add the missing URL :)

IIUC, the URL should be passed into error constructor.

But if you want to see a traceback.. It's easy:

bzr init .
echo ""> .bzr/branch-format
bzr -Derror st

C:\Temp\2>bzr -Derror st
bzr: ERROR: bzrlib.errors.UnknownFormatError: Unknown bzrdir format: ''

Traceback (most recent call last):
   File "bzrlib\commands.pyo", line 853, in exception_to_return_code
   File "bzrlib\commands.pyo", line 1055, in run_bzr
   File "bzrlib\commands.pyo", line 661, in run_argv_aliases
   File "bzrlib\commands.pyo", line 665, in run_direct
   File "bzrlib\cleanup.pyo", line 122, in run_simple
   File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
   File "bzrlib\commands.pyo", line 1070, in ignore_pipe
   File "bzrlib\builtins.pyo", line 313, in run
   File "bzrlib\builtins.pyo", line 77, in tree_files
   File "bzrlib\builtins.pyo", line 170, in internal_tree_files
   File "bzrlib\workingtree.pyo", line 343, in open_containing
   File "bzrlib\bzrdir.pyo", line 898, in open_containing
   File "bzrlib\bzrdir.pyo", line 919, in open_containing_from_transport
   File "bzrlib\bzrdir.pyo", line 873, in open_from_transport
   File "bzrlib\lazy_import.pyo", line 125, in __call__
   File "bzrlib\transport\__init__.pyo", line 1644, in
do_catching_redirections
   File "bzrlib\bzrdir.pyo", line 860, in find_format
   File "bzrlib\bzrdir.pyo", line 1820, in find_format
   File "bzrlib\bzrdir.pyo", line 1837, in probe_transport
UnknownFormatError: Unknown bzrdir format: ''

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Bazaar because there has been no activity for 60 days.]

Changed in bzr:
status: Incomplete → Expired
Martin Pool (mbp)
Changed in bzr:
importance: Undecided → Medium
status: Expired → Confirmed
tags: added: error-reporting format-infrastructure
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.