Give user better feedback than "NotBranchError", and suggestion for recovery.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Invalid
|
Medium
|
Unassigned |
Bug Description
If a hosted branch could not be mirrored, the branch page will display an error supposedly explaining why. For hosted branches, this is almost always a "Not a branch". However, as described in https:/
We should automate the diagnosis of these causes, and suggest an appropriate remedy to the user. If no recognised cause is determined, obviously reporting a the original NotBranchError is an acceptable fallback.
For example, we could detect and report "$LOCATION is an empty directory. Remedy: Using bzr 0.15 or newer, do 'bzr push --use-existing-dir $LOCATION'."
("--use-
Another example: "$LOCATION contains a repository (.bzr/repository) but no branch (.bzr/branch). Remedy: Using bzr 0.15 or newer, do 'bzr push $LOCATION' again."
(again, I specify a bzr version because bzr 0.15 will be better at resuming interrupted pushes than earlier versions)
Both of these diagnoses are fairly easy to automate, and the other commonly occuring problems probably are too.
Related to bug #48064. Bug #86420 is also related.
description: | updated |
Nice to have -> Medium importance.