Merge lp:~parthm/bzr/138600 into lp:bzr
Proposed by
Parth Malwankar
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~parthm/bzr/138600 |
Merge into: | lp:bzr |
Diff against target: |
137 lines (+67/-8) (has conflicts) 3 files modified
NEWS (+6/-0) bzrlib/builtins.py (+8/-3) bzrlib/tests/blackbox/test_versioning.py (+53/-5) Text conflict in NEWS |
To merge this branch: | bzr merge lp:~parthm/bzr/138600 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vincent Ladeuil | Approve | ||
Andrew Bennetts | Approve | ||
Review via email: mp+19471@code.launchpad.net |
To post a comment you must log in.
This patch fixes bug #138600
Basically bzr was creating the directory before adding it to the tree. If adding failed
the directory still remains. This change takes care of the following scenarios i.e. ensures no directory is created in case of the following failures:
1. mkdir fails in a repository because there is no working tree.
2. 'bzr mkdir foo' fails because '.' is not versioned.
3. 'bzr mkdir bar/foo' fails because 'bar' is not versioned (but '../bar' is versioned).
4. 'cd bar; bzr mkdir foo' fails because 'bar' is not versioned (but '../bar' is versioned).