bzr switch --force failing with ConnectionError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
affects bzr
status triaged
importance medium
done
Root cause:
- ConnectionError is raised when probing for a branch.
- switch catches NotBranchError, but not ConnectionError
possible fixes:
- catch ConnectionError in Remote* and raise NotBranchError
- catch ConnectionError in cmd_switch.
I need to think more about it, but I'm inclined to say that the
RemoteBranch logic should be catching ConnectionError.
-Rob
$ bzr -Derror switch --no-plugins --force
bzr://mbp:
bzr: ERROR: bzrlib.
Traceback (most recent call last):
File "/Library/
return the_callable(*args, **kwargs)
File "/Library/
ret = run(*run_argv)
File "/Library/
return self.run(
File "/Library/
branch = control_
File "/Library/
return format.open(self, _found=True, ignore_
File "/Library/
location, possible_
File "/Library/
return BzrDir.
File "/Library/
return format.
File "/Library/
return self._open(
File "/Library/
return remote.
File "/Library/
response = self._call(
File "/Library/
return self._client.
File "/Library/
result, protocol = self.call_
File "/Library/
method, args, expect_
File "/Library/
readv_
File "/Library/
encoder.
File "/Library/
self.
File "/Library/
self.flush()
File "/Library/
self.
File "/Library/
self.
File "/Library/
self.
File "/Library/
self.
File "/Library/
(self._host, port, err_msg))
ConnectionError: Connection error: failed to connect to mbp:4155: Connection refused
--
Changed in bzr: | |
status: | Triaged → Confirmed |