Basically, you can use svn switch --relocate to switch the working copy url. However, that will probably not switch the associated credentials, you'd probably still have to use the --username switch.
But as Andy asked, why that requirement? What's the basic idea behind that? If you'd tell us we could give you a better advice. Currently the only difference I see compared to using one single url is that you make the process unnecessarily painful. felix On Jan 29, 2010, at 12:58 PM, Vineet Priyank wrote: > Thanks Andy for your quick response. > > We want to access the svn(Basically check out) from URL1 and we want to > update it with URL2, this is our basic requirement. Please suggest the > possible solutions. > > Thanks, > Vineet > > -----Original Message----- > From: Andy Levy [mailto:andy.l...@gmail.com] > Sent: Friday, January 29, 2010 5:14 PM > To: Vineet Priyank > Cc: users@subversion.apache.org > Subject: Re: SVN access using 2 different URLs pointing to same Server by > changing metadata > > On Fri, Jan 29, 2010 at 06:20, Vineet Priyank <vpriy...@juniper.net> wrote: >> >> I have two URLs with different credential pointing to the Same Server and >> Same data. I have done svn check out for URL1 with crederntial1 and it got >> checked out. After that I have changed the URL1 to URL2 using >> >> sed -i 's/string1/string2/g' * command(only 1 string difference is there >> between 2 URLs) after going in .svn folder. >> >> >> >> Basically .snv/all-wcprops and .svn/entries files contains these URL entry. >> >> >> >> After that I tried to update the the folder using svn update foldername but >> the following error comes. >> >> >> >> svn: Error processing command 'modify-wcprop' in 'junos' >> >> svn: Failed to load properties from disk >> >> svn: Malformed file >> >> Please provide some solution to move forward and do a svn update using URL2 >> and credential2. > > *NEVER* change the contents of the .svn directories. They are not > meant to be manipulated by anything but the Subversion libraries. > > Credentials are not cached in the working copy, they are cached in the > user's home directory, so if you need to use different credentials, > specify the --username option on the command line. > > Why do you think you need to change the URL the WC was checked out > from? Rather than trying to describe *how* you want to accomplish > something, describe *what* you need the end result to be, and let the > list suggest how to get there. I'm very unclear on what you're > attempting to do here. > -- Felix Gilcher Bitextender GmbH Paul-Heyse-Str. 6 D-80336 München