User Name
Password
AppleNova Forums » Genius Bar »

Relocate SVN folders


Register Members List Calendar Search FAQ Posting Guidelines
Relocate SVN folders
Thread Tools
dmegatool
Custom User Title
 
Join Date: Jul 2006
Location: At home
 
Old 2008-05-06, 16:45

Hey there !
My company has moved so the svn isn't the same adresse anymore. Can you explain me how to move all the shit ?

I've found a way but I would have to edit all the "entries" file. There are no master folder that contain everything. Every projects has is own adresse so it's easier on the backup task. Can you help setup a automator task that would open all "entries" file, search 192.XXX.XXX.XXX, replace that with 192.YYY.YYY.YYY, save the file.

Dave Mustaine :"God created whammy bars for people who don't know how to solo."
dmegatool is offline   quote
chucker
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
Old 2008-05-07, 01:39

You're looking for 'svn switch --relocate'.

Code:
$ svn help sw switch (sw): Update the working copy to a different URL. usage: switch --relocate FROM TO [PATH...] Rewrite working copy URL metadata to reflect a syntactic change only. This is used when repository's root URL changes (such as a scheme or hostname change) but your working copy still reflects the same directory within the same repository.
chucker is offline   quote
dmegatool
Custom User Title
 
Join Date: Jul 2006
Location: At home
 
Old 2008-05-07, 07:38

Yeah I looked for that but I got a bunch of different addresses. Like 92.XXX.XXX.XXX/project1, 92.XXX.XXX.XXX/project2, ... So I would have to do it on every folder . No ?!?

Dave Mustaine :"God created whammy bars for people who don't know how to solo."
dmegatool is offline   quote
chucker
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
Old 2008-05-07, 08:24

Well, do you have a common hierarchy for the root of the repository? I.e., one with the address 92.XXX.XXX.XXX itself?

If so, you'd go there and type

svn sw --relocate 92.XXX.XXX.XXX SomeOtherAddress

It'll then recursively change everything in there.
chucker is offline   quote
dmegatool
Custom User Title
 
Join Date: Jul 2006
Location: At home
 
Old 2008-05-07, 08:41

Quote:
Originally Posted by chucker View Post
Well, do you have a common hierarchy for the root of the repository? I.e., one with the address 92.XXX.XXX.XXX itself?
No that's the problem. The root folder isn't a repository. Each project have it's own svn asdress.

Do you know any way to change the text in all the "entries" files ? I'm thinking about using Dreamweaver fonction of search and replace... Maybe I'll give it a try

Anyway thanks for your help. It's really appreciate... But you didn't find a solution so keep going !

EDIT: Tried with dreamweaver. I can open the file but it says it's locked so it will open in read-only. Still, I can't manage to make search in the files as it's not reconized by default. I need to select --All Files (*.*)--

Dave Mustaine :"God created whammy bars for people who don't know how to solo."

Last edited by dmegatool : 2008-05-07 at 09:10.
dmegatool is offline   quote
dmegatool
Custom User Title
 
Join Date: Jul 2006
Location: At home
 
Old 2008-05-07, 09:15

Anyway I tried a little bit the terminal way and I can't get it to work. Now I would mind doing the folders one by one ...

Let say my folder I would like to relocate is " /Users/MP/Documents/MySVNFolderHere/". Could you give me a example with like http://oldAdress and http://newAdress ?

Dave Mustaine :"God created whammy bars for people who don't know how to solo."
dmegatool is offline   quote
chucker
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
Old 2008-05-07, 09:32

Code:
(cd /Users/MP/Documents/MySVNFolderHere/; svn sw --relocate http://oldAdress http://newAdress)
chucker is offline   quote
dmegatool
Custom User Title
 
Join Date: Jul 2006
Location: At home
 
Old 2008-05-07, 10:02

Wow I don't know why i didn't figure out the cd thing. Too easy I guess.

Thank you Chucker. I'll do that folder by folder but hey! ... it's better than nothing

Dave Mustaine :"God created whammy bars for people who don't know how to solo."
dmegatool is offline   quote
chucker
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
Old 2008-05-07, 10:51

You're quite welcome. Good luck!
chucker is offline   quote
Posting Rules Navigation
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Reply

Forum Jump
Thread Tools
Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with File Sharing-Permissions across Folders AubreyL Genius Bar 0 2008-02-07 04:32
Leopard not remembering where I was in folders NeverFade Genius Bar 9 2007-12-13 11:26
How do I back up iCal/Mail/Address Book data (Which Folders?) RickR10 Apple Products 6 2007-06-01 22:03
Mail - smart folders vs. folders with rules? BarracksSi Genius Bar 3 2005-08-28 22:19
iTunes and Unknown Artist/Album folders in it naashraf Apple Products 9 2005-07-17 04:05


« Previous Thread | Next Thread »

All times are GMT -5. The time now is 23:22.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2012, AppleNova
AppleNova Slim