|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Question about switch and URLsHello – I am having an issue using the switch functionality because
of the way the URL of a directory I am working with is returned from
listing. Basically I am getting an error when trying to switch that the
directory is not in the repository because the directory has a URL like
svn://<servername>/ and the repository is
svn://<username>@<servername>:<port>/ So basically the URL for the directory does not contain the
information about the user or the port and causes the lib to not match this up
to the repository. The URL being used for the directory is retrieved from
listing so it is the value of SVNDirEntry.getUrl . Any easy solution to this issue? Scott A Carter Software Configuration Management Engineer Conexant E-mail Firewall (Conexant.Com) made the following annotations |
|
|
Re: Question about switch and URLsHello Scott,
Could you please provide more information on that issue (I think I do not fully understand the situation yet). What is the URL of your working copy, what URL is reported by "info" operation (SVNWCClient.doInfo or "svn info")? What is the URL you are using for "switch" operation? Both URL should belong to the same repository and Subversion checks that by comparing repository roots (root parts of the URLs) char by char, i.e. it only compares strings. SVNKit follows the same algorithm. To workaround this problem you could: a) create SVNRepository with the same URL as you working copy has, i.e without username and port parts. b) alter URL you're receiving from SVNDirEntry so that they do not include port number and username. Please note, that removing port number is more or less safe when port number is default one (80 for http, 3690 for svn), because there could be several servers running on different ports providing access to different repositories. To create SVNURL use SVNURL.create(...) method, pass -1 as port number and null as userInfo. Alexander Kitaev, TMate Software, http://svnkit.com/ - Java [Sub]Versioning Library! Scott Carter wrote: > Hello – > > > > I am having an issue using the switch functionality because of the way > the URL of a directory I am working with is returned from listing. > Basically I am getting an error when trying to switch that the directory > is not in the repository because the directory has a URL like > svn://<servername>/ and the repository is > svn://<username>@<servername>:<port>/ > > > > So basically the URL for the directory does not contain the information > about the user or the port and causes the lib to not match this up to > the repository. The URL being used for the directory is retrieved from > listing so it is the value of SVNDirEntry.getUrl . > > > > Any easy solution to this issue? > > > > > > Scott A Carter > > Software Configuration Management Engineer > > > > Conexant E-mail Firewall (Conexant.Com) made the following annotations > --------------------------------------------------------------------- > ********************** Legal Disclaimer **************************** > "This email may contain confidential and privileged material for the > sole use of the intended recipient. Any unauthorized review, use or > distribution by others is strictly prohibited. If you have received the > message in error, please advise the sender by reply email and delete the > message. Thank you." > ********************************************************************** > --------------------------------------------------------------------- > |
| Free embeddable forum powered by Nabble | Forum Help |