Moved dir: Unable to connect to target of bound branch BzrBranch5

Jari Aalto jari.aalto at cante.net
Fri Aug 17 08:38:34 BST 2007


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. 

    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:

        links.todo/
                 |
                 +-CYGWIN-PATCHES/      (the MASTER repo)
                 |
                 +-links-1.00pre20
                   |
                   +-CYGWIN-PATCHES/    (co from MASTER)

    And when I was done, I did:

        mv links.todo/ links/

Jari

P.S if there is not, perhaps:

    bzr admin --relocate-root=file:///...





More information about the bazaar mailing list