|
Custom User Title
Join Date: Jul 2006
Location: At home
|
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." |
|
|
quote |
|
‽
|
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. |
|
|
quote |
|
Custom User Title
Join Date: Jul 2006
Location: At home
|
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." |
|
|
quote |
|
‽
|
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. |
|
|
quote |
|
Custom User Title
Join Date: Jul 2006
Location: At home
|
Quote:
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. |
|
|
|
quote |
|
Custom User Title
Join Date: Jul 2006
Location: At home
|
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." |
|
|
quote |
|
‽
|
Code:
(cd /Users/MP/Documents/MySVNFolderHere/; svn sw --relocate http://oldAdress http://newAdress) |
|
|
quote |
|
Custom User Title
Join Date: Jul 2006
Location: At home
|
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." |
|
|
quote |
|
‽
|
You're quite welcome. Good luck!
![]() |
|
|
quote |
| Posting Rules | Navigation |
|
|
| 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 |