Behaviour when repository location changes

Asked by André Bachmann

Here bzr 2.3.3-3 is used with Windows XP and Win7 32 Bit.

We have the following setup: a bzr virtual repository in a mapped network drive under W:\BZR-Repository, and within are the bzr repositories for many projects. These contains branches. So we have W:\BZR-Repository\project1\trunk, W:\BZR-Repository\project2\trunk, W:\BZR-Repository\project2\test etc.

Every user has its checkouts locally on a folder like E:\project\project1, E:\project\project2 etc.

Now the folder W:\BZR-Repository is getting renamed to W:\Controller-Repository.

Then, if a user wants to open his/hers checkout on E:\project\project1, Bazaar Explorer no longer recognizes this as a checkout - it recognizes it as a virtual repository, which is completely nonsense.
I have to manually edit E:\project\project1\.bzr\branch\location and change the path from W:\BZR-Repository\project1 to W:\Controller-Repository\project1 and after that, Bazaar Explorer recognizes these checkouts again as checkouts, which is correct.

So is there an easier way to do these changes rather than editing countless location files?

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
André Bachmann
Solved:
Last query:
Last reply:
Revision history for this message
John A Meinel (jameinel) said :
#1

I'm not sure about bzr explorer, but the usual command is 'bzr switch
--force NEWLOCATION'
John
=:->
On Jun 24, 2011 12:36 PM, "André Bachmann" <
<email address hidden>> wrote:
> New question #162582 on Bazaar:
> https://answers.launchpad.net/bzr/+question/162582
>
> Here bzr 2.3.3-3 is used with Windows XP and Win7 32 Bit.
>
> We have the following setup: a bzr virtual repository in a mapped network
drive under W:\BZR-Repository, and within are the bzr repositories for many
projects. These contains branches. So we have
W:\BZR-Repository\project1\trunk, W:\BZR-Repository\project2\trunk,
W:\BZR-Repository\project2\test etc.
>
> Every user has its checkouts locally on a folder like E:\project\project1,
E:\project\project2 etc.
>
> Now the folder W:\BZR-Repository is getting renamed to
W:\Controller-Repository.
>
> Then, if a user wants to open his/hers checkout on E:\project\project1,
Bazaar Explorer no longer recognizes this as a checkout - it recognizes it
as a virtual repository, which is completely nonsense.
> I have to manually edit E:\project\project1\.bzr\branch\location and
change the path from W:\BZR-Repository\project1 to
W:\Controller-Repository\project1 and after that, Bazaar Explorer recognizes
these checkouts again as checkouts, which is correct.
>
> So is there an easier way to do these changes rather than editing
countless location files?
>
> --
> You received this question notification because you are an answer
> contact for Bazaar.

Revision history for this message
André Bachmann (andrebachmann-dd) said :
#2

Thanks, I will try this!