You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Antony Gelberg <an...@wayforth.co.uk> on 2007/03/04 20:58:44 UTC

Change of server name

Hi all,

I have an SVN repo that I've been working with for some time.  I'm the
only user.  Since I created the repo, the server has changed name.  Is
there an easy way to perform a commit from my working copy?  I can see
that the server name is mentioned in all the .svn/entries files.  Can I
find / sed my way through those files and expect the commit to work?

Otherwise, what are my options?  Perform an import to a brand-new
repository and lose my changelogs?

Antony

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Change of server name

Posted by Brad Bruce <NJ...@Verizon.net>.
Antony Gelberg wrote:
> Hi all,
>
> I have an SVN repo that I've been working with for some time.  I'm the
> only user.  Since I created the repo, the server has changed name.  Is
> there an easy way to perform a commit from my working copy?  I can see
> that the server name is mentioned in all the .svn/entries files.  Can I
> find / sed my way through those files and expect the commit to work?
>
> Otherwise, what are my options?  Perform an import to a brand-new
> repository and lose my changelogs?
>
> Antony
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
>   
You need to do an svn switch.

Brad

Re: Change of server name

Posted by Antony Gelberg <an...@wayforth.co.uk>.
Matt Sickler wrote:
> crap I meant
> svn switch --relocate OLDURL NEWURL
> 
> which does the same thing as seding the entries file, but safer and
> supported
> 

Thanks all for such a quick and helpful response.  :)

Antony

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Change of server name

Posted by Matt Sickler <cr...@gmail.com>.
svn --switch OLDURL  NEWURL

On 3/4/07, Antony Gelberg <an...@wayforth.co.uk> wrote:
>
> Hi all,
>
> I have an SVN repo that I've been working with for some time.  I'm the
> only user.  Since I created the repo, the server has changed name.  Is
> there an easy way to perform a commit from my working copy?  I can see
> that the server name is mentioned in all the .svn/entries files.  Can I
> find / sed my way through those files and expect the commit to work?
>
> Otherwise, what are my options?  Perform an import to a brand-new
> repository and lose my changelogs?
>
> Antony
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

Re: Change of server name

Posted by Tobias Schäfer <to...@gmx.de>.
On Sunday 04 March 2007 21:58, Antony Gelberg wrote:
> Hi all,
>
> I have an SVN repo that I've been working with for some time.  I'm the
> only user.  Since I created the repo, the server has changed name.  Is
> there an easy way to perform a commit from my working copy?  I can see
> that the server name is mentioned in all the .svn/entries files.  Can I
> find / sed my way through those files and expect the commit to work?

You need to relocate your working copy:

"svn switch --relocate"

Tobias

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


RE: Change of server name

Posted by Clyde Jones <cj...@exelixis.com>.
You need to use svn switch --relocate

That lets you change the server portion of the url

http://svnbook.red-bean.com/nightly/en/svn.ref.svn.c.switch.html


$ svn switch --relocate file:///tmp/oldlocation file:///tmp/newlocation
.

-----Original Message-----
From: Antony Gelberg [mailto:antony@wayforth.co.uk] 
Sent: Sunday, March 04, 2007 12:59 PM
To: users@subversion.tigris.org
Subject: Change of server name

Hi all,

I have an SVN repo that I've been working with for some time.  I'm the
only user.  Since I created the repo, the server has changed name.  Is
there an easy way to perform a commit from my working copy?  I can see
that the server name is mentioned in all the .svn/entries files.  Can I
find / sed my way through those files and expect the commit to work?

Otherwise, what are my options?  Perform an import to a brand-new
repository and lose my changelogs?

Antony

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


This email (including any attachments) may contain material
that is confidential and privileged and is for the sole use of
the intended recipient. Any review, reliance or distribution by
others or forwarding without express permission is strictly
prohibited. If you are not the intended recipient, please
contact the sender and delete all copies.


Exelixis, Inc. reserves the right, to the extent and under
circumstances permitted by applicable law, to retain, monitor
and intercept e-mail messages to and from its systems.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


RE: Change of server name

Posted by Remo Liechti <re...@swisslog.com>.
Hi Antony

I think this should work well. Make sure you create a backup of your local checked-out folder before editing the files in .svn.

Another option would be to checkout the stuff from the server with the new hostname to an empty folder, then delete all the .svn folders in yourlocal checkout and move the files over to the newly checked out folder. This work for sure.

Hope it helps,
Remo



-----Original Message-----
From: Antony Gelberg [mailto:antony@wayforth.co.uk] 
Sent: Sonntag, 4. März 2007 21:59
To: users@subversion.tigris.org
Subject: Change of server name

Hi all,

I have an SVN repo that I've been working with for some time.  I'm the only user.  Since I created the repo, the server has changed name.  Is there an easy way to perform a commit from my working copy?  I can see that the server name is mentioned in all the .svn/entries files.  Can I find / sed my way through those files and expect the commit to work?

Otherwise, what are my options?  Perform an import to a brand-new repository and lose my changelogs?

Antony

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


This message may contain legally privileged or confidential information and is therefore addressed to the named persons only. The recipient should inform the sender and delete this message, if he/she is not named as addressee.
The sender disclaims any and all liability for the integrity and punctuality of this message. The sender has activated an automatic virus scanning, but does not guarantee the virus free transmission of this message.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org