bzr version-info --all does not work for bare repositories in 2.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
New
|
Undecided
|
Unassigned |
Bug Description
The bug happens only when running version-info with the --all flag, on a bare repository, not a checkout.
In bzrlib/
if self._revision_id is None:
else:
# the working tree is not relevant if an explicit revision was specified
This will, if both self._revision_id and working_tree is None, result in both self._tree and self._working_tree being None. Further down, in _extract_
if self._working_tree is self._tree:
# TODO: jam 20070215 The working tree should actually be locked at
# a higher level, but this will do for now.
else:
However, if the first if statement is changed to this:
if self._revision_id is None and working_tree is not None:
else:
# the working tree is not relevant if an explicit revision was specified
Then self._tree will be taken from the branch instead and things seems to be fine.
tags: | added: check-for-breezy |