Moved dir: Unable to connect to target of bound branch BzrBranch5
John Arbash Meinel
john at arbash-meinel.com
Tue Aug 21 16:53:39 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jari Aalto wrote:
> Consider this:
>
> $ cd path/to/REPO
> $ bzr init
> ... go elsewhere
> ! $ bzr co path/to/REPO
> ... time passes, relocate REPO
> $ mv path/to/REPO new/REPO
>
> Obviously your out of synch now.
>
> Here is live exmaple where I moved dir "links.todo" back to "links"
> after having finished successful porting task.
Overall, I think 'bzr switch' should be moved into core, and it should be
updated to not fail if the current target cannot be reached.
>
> bzr: ERROR: Unable to connect to target of bound branch BzrBranch5('file:///usr/src/build/build/links/links-1.00pre20/CYGWIN-PATCHES/') => file:///usr/src/build/build/links.todo/CYGWIN-PATCHES/: Not a branch: /usr/src/build/build/links.todo/CYGWIN-PATCHES/
>
> 1)
> Is there a command which can change the repo location?
>
> 2)
> Actually I did a relative checkout in previous example:
>
> cd dir
> bzr co ../REPO
>
> but this records the absolute location, which causes the errror above.
> If bzr recorded the relative location as the argument was, now above
> problem would occur. The dir structure was:
I had started down the road of using relative paths, but it has only been done
for 'parent'. The #1 reason is just that nobody cared to do the work. The #2
reason is that it should really have a new format, since older clients will
fail when trying to access a checkout using a relative path. #3 is that the
relative path code should probably be a bit smarter. If I'm using:
/home/jameinel/test/bar
and
/srv/bzr/bar
Having the checkout path be:
../../../../srv/bzr/bar
Isn't very helpful (and is rather ugly). So the relative path code should be
aware if it is going through '/', so it knows to just use an absolute path.
If you want to work on it, though. I would recommend getting 'bzr switch' as a
core bzr command, rather than just being part of bzrtools.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGywqCJdeBCYSNAAMRAvPXAKCcEvIqt805p0ZPRfkgZ7DcddYsQwCfRwu6
sOHEtXuv7/2M6+dPpaGaFL8=
=XRnC
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list