commands that remember paths should remember whether the user gave an absolute or relative path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned |
Bug Description
DESCRIPTION
Local checkout command records absolute paths even in relative
checkout situation. This means that the checkout is unmovable to
another directory.
AN EXAMPLE
Directory hierarchy:
|
+- my-tools/
|
+- one/one-1.0/
+- two/two-1.23/
+- three/three-2.0.1/
At one/one-1.0 directory and likewise in every other package
directory:
$ bzr co ../../my-toools
Then, there is need to move the project:
mv /usr/share/
COMMENTS
All the relative checkous become invalid when directories are moved.
Another exmaple woud be:
- A package is downloaded
- A port is tried (tools "'checked out" into it)
- If success, move whole project to "good" directory
If failure, move to staging "bad" or "todo" directory for
further examination.
To bzr to remember and use relative paths (IF user used those), would
be very important.
Related branches
- Ian Clatworthy: Approve
-
Diff: 195 lines (+53/-18)6 files modifiedNEWS (+7/-3)
bzrlib/branch.py (+23/-7)
bzrlib/builtins.py (+2/-1)
bzrlib/tests/blackbox/test_bound_branches.py (+2/-0)
bzrlib/tests/blackbox/test_checkout.py (+12/-4)
bzrlib/tests/test_branch.py (+7/-3)
description: | updated |
Changed in bzr: | |
assignee: | nobody → Martin Pool (mbp) |
status: | Confirmed → In Progress |
summary: |
- Checkout should record relative paths (dir move problem) + commands that remember paths should remember whether the user gave an + absolute or relative path |
tags: | removed: easy |
Changed in bzr: | |
assignee: | Martin Pool (mbp) → nobody |
importance: | Medium → Low |
status: | In Progress → Confirmed |
tags: | added: check-for-breezy |
It would be useful if the master branch could be recorded as a relative path. In the meantime, you should be able to update to the new location after moving with 'bzr bind NEW_PATH'