[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Strange issue

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Tue, 7 Oct 2008 16:33:14 -0500

On Oct 6, 2008, at 13:01, Anto Marky wrote:

> I have a strange issue in my new linux box (recently moved from
> windows), I created my repository as svnadmin create /home/
> my_new_repos/MY_REPO,
>
> It was created, I imported data to it and started working, Suddenly
> in my repository's physical directory an extra "_" is shown,like /
> home/my_new_repos_/MY_REPO.Now when I start my dameon i am only
> able to start as svnserve -d -r /home/my_new_repos_/MY_REPO and not
> as svnserve -d -r /home/my_new_repos/MY_REPO.
>
> But when I check out I am not able checkout from svn://192.168.1.100/
>
> +my_new_repos_
>
> +MY_REPO
>
> But I am able to checkout from svn://192.168.1.100/
>
> +my_new_repos
>
> +MY_REPO
>
> I am not able understand what has happened to my repository,
> Everything is working properly but I have a problem only when I
> select show log from my TSVN client it gives ann error like "Item
> is not readable"(I have already put a query in the mailing list and
> some people have tried to help me out, but none worked), is this
> issue related to the extra "_" which suddenly appears in my
> repository root directory.

You have a repository directory on disk. It sounds like it used to be
called /home/my_new_repos/MY_REPO but my whatever means you changed
the name of the directory to home/my_new_repos_/MY_REPO. You can
change the name back if you like, of course, using your normal
operating system rename facilities.

When you start svnserve, you usually tell it to start as a daemon and
to restrict access to a specific on-disk directory. In your case:

svnserve -d -r /home/my_new_repos_/MY_REPO

You start as a daemon, and set the repository root to /home/
my_new_repos_/MY_REPO because that is currently the on-disk path to
the repository.

If you want to rename the repository back to /home/my_new_repos/
MY_REPO then do so, and change to starting svnserve with that path:

svnserve -d -r /home/my_new_repos/MY_REPO

To check out from this repository, you use the svn protocol and the
hostname or IP address of the server, e.g.:

svn co svn://192.168.1.100/

Anything after that is a path _within_ the repository.

It sounds like you have a directory my_new_repos _inside_ your
repository, and another directory MY_REPO inside that. This is
peculiar and I'm guessing not what you meant to do.

To verify this, you could do

svn ls file:///home/my_new_repos_/MY_REPO

I expect it will say "my_new_repos", meaning a directory
"my_new_repos" exists at the top level of your MY_REPO repository.

What you probably want to do is get rid of those two extra levels of
directories inside the repository. To do so, move everything from
svn://192.168.1.100/my_new_repos/MY_REPO to svn://192.168.1.100/
using "svn mv" commands (or, presumably you could do so using drag-n-
drop in TortoiseSVN; I'm not familiar with that tool) and then you
can "svn rm" (or, in TortoiseSVN, somehow delete) the now-unneeded
my_new_repos directory inside your repository.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-07 23:33:33 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.