bzr push to an extant non-branch directory fails horribly
Bug #30576 reported by
Wouter van Heyst
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
John A Meinel |
Bug Description
mkdir /tmp/mirror
bzr: ERROR: File exists: u'/tmp/mirror': [Errno 17] File exists: '/tmp/mirror'
This at the very least needs a better error message. Push help also isn't very clear on the issue. Further discussion of desired behaviour below.
If you would try to do this with a precious directory like ~/public_html/ I appreciate not nuking it. Just adding .bzr without workingtree might work, although fuzzy, but with a workingtree refusing seems the right thing to do. In this specific case, I prepared the empty branch directory, should push work in that case?
To post a comment you must log in.
If I understand correctly the desired behaviour is:
- if the destination does not exist at all, push creates it (works)
- if the destination exists but is not an empty directory, an error is raised (works but the error is clear)
- if the destination exists and is an empty directory, push makes a new bzrdir there
Some questions:
Is it ok to have a .bzrdir and nothing else? Should it be OK to push to a nonempty directory if we're not building a checkout?