--relocate alias for bzr switch --force
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Wishlist
|
Unassigned | ||
Bazaar Subversion Plugin |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I ran into a dead-end trying to get my existing bzr checkout to point to our new svn server. There is probably a simple way to do this without botching it like I did, but hours of searching yielded no help. I ended up creating a new checkout and manually merging in my changes, but hopefully this report might be of help to others.
I've been working on a somewhat long-running project not being committed to svn. These steps have been working great until we moved our svn server. Here are the steps:
1. existing svn server with history
2. bzr checkout svn://server1/
3. bzr branch trunk MyProject
4. make changes in MyProject and bzr commit
5. bzr update trunk
6. bzr merge trunk MyProject
Then the server was moved to a new server. With svn a simple "svn switch --relocate svn://server2/
Do not use bzr to do any of this, simple edit these files:
1. replace the old repository path in subversion.conf with the new svn server path
2. replace the old repository path in .bzr\branches\
After that, "bzr update" seems to work perfectly. Again, I ran a test and this seems to work, but there might be more files that need tweaking. It might be nice to have a bzr-svn command to do this, or better yet add "bzr switch --relocate" like svn.
Related branches
Changed in bzr-svn: | |
status: | New → Incomplete |
Changed in bzr: | |
status: | Triaged → Confirmed |
tags: | added: check-for-breezy |
Hi Brad,
Thanks for the bugreport.
On Tue, 2009-02-24 at 20:51 +0000, Brad Burch wrote: product/ trunk trunk product/ trunk" does the trick since the
> Public bug reported:
>
> I ran into a dead-end trying to get my existing bzr checkout to point to
> our new svn server. There is probably a simple way to do this without
> botching it like I did, but hours of searching yielded no help. I ended
> up creating a new checkout and manually merging in my changes, but
> hopefully this report might be of help to others.
>
> I've been working on a somewhat long-running project not being committed to svn. These steps have been working great until we moved our svn server. Here are the steps:
> 1. existing svn server with history
> 2. bzr checkout svn://server1/
> 3. bzr branch trunk MyProject
> 4. make changes in MyProject and bzr commit
> 5. bzr update trunk
> 6. bzr merge trunk MyProject
>
> Then the server was moved to a new server. With svn a simple "svn
> switch --relocate svn://server2/
> repository was loaded with the same UUID. Using "bzr switch" does not
> work. After I started from scratch, I did find a way to relocate the
> server that seems to work, though I'm not certain if there could be
> ramifications.
This is what the "bzr switch" command is for.
What exactly didn't work when you used "bzr switch product/ trunk" ?
svn://server2/
Cheers,
Jelmer samba.org/ ~jelmer/
--
Jelmer Vernooij <email address hidden> - http://
Jabber: <email address hidden>