bzr branch . has a confusing error message

Bug #101952 reported by Wouter van Heyst
2
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned

Bug Description

Users coming from other systems, notably git, are not always familiar with the Bazaar design.
To discover what available branches there might be, such a user might try:

`bzr branch`
bzr: ERROR: command 'branch' requires argument FROM_LOCATION
(or nothing in old versions, need to check that)

Trying the next best thing:

`bzr branch .`
bzr: ERROR: Target directory "." already exists.

Very confusing.

Changed in bzr:
importance: Undecided → Low
status: Unconfirmed → Confirmed
Revision history for this message
Wouter van Heyst (larstiq) wrote :

Whereas `bzr branch path/to/.` will happily branch . to dirname(path/to/.)
Since there is a check for existing directories that prevents fun with `bzr branch subdir/..`, but if branch
ever got something like --use-existing-dir ala bug 30576, that check might be gone.

Revision history for this message
Tim Hatch (timhatch) wrote :

I observed this too... I had an empty directory and tried to branch to it.

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.