[BUG] RemoteBranch has an ugly __str__ in bzr 0.16
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Unassigned |
Bug Description
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm using bzr+ssh:// for heavy checkouts, and I came across this error:
% bzr commit -m ...
bzr: ERROR: Bound branch
BzrBranch5(
out of date with master branch <bzrlib.
0xb7b607cc>.
To commit to master branch, run update and then commit.
You can also pass --local to commit to continue working disconnected.
The current error reporting code expects to be able to display the
branch and its information. There are a few fixes to be made
1) RemoteBranch.
self.base. As is, we have no idea what "master branch" we are connected
to in this error.
2) Update the exception to use self.branch.base instead of the raw
Branch. This just depends whether we want to see "BzrBranch5" versus
"RemoteBranch". It could be useful sometime (especially if we end up
with a lot of formats over time). So this is a maybe.
3) Use urlutils.
the user. That would let us change 'file:///' into a real local path,
and would also help a lot if people start using non-ascii filenames
(since they have to be URL encoded when displaying a real URL).
Technically this is a regression in bzr 0.16, but I'm not sure it is
worthy of a backport.
John
=:->
affects /products/bzr
status confirmed
importance high
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://
iD8DBQFGP6RvJde
TzkzspKF0UanPX0
=izrb
-----END PGP SIGNATURE-----
Related branches
Changed in bzr: | |
status: | Fix Committed → Fix Released |
This is fixed in my counted-lock branch which is now approved. It
shows the vfs-based branch class and the url.
It may be a regression in 0.16 but I think it's not substantial enough
to do a new release.
--
Martin