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

Re: I think I ruined my repository. What do I do now?

From: Max Bowsher <maxb_at_ukf.net>
Date: 2005-05-16 10:12:19 CEST

barophobia wrote:
> Hello,
>
> I tried to add a new project into the repository by following the
> Quick Start guide in the manual. I did the same things (or so I
> thought) as I did for the first project, but instead of saying
> 'Committed revision 1.' it said 'svn: File already exists: filesystem
> '/home/cornelious/programs/db', transaction 'a', path 'trunk''.

In answer to your subject line - there's nothing ruined here, it appears you
are just confused about what directory structure is actually contained
within your repository, and about what various commands actually do. "svn
list" can help you with the former, and some slow careful reading of the
svnbook should help the latter.

> Here are the steps I took: (working from my home directory)
>
> cd tmp
> mkdir mymoney
> cd mymoney
> mkdir branches
> mkdir tags
> mkdir trunk
> cd ~
> svn import tmp/mymoney file:///home/chris/programs -m "initial import"
>
> Then the output was that funky thing saying the directory already existed.

Exactly. The above is broadly equivalent to:
svn mkdir -m "initial import" file:///home/chris/programs/trunk
file:///home/chris/programs/tags file:///home/chris/programs/branches

Since those directories already exist in your repository, svn naturally
produced an error.

> So then for shits and giggles I went into my public_html directory and
> tried a checkout on that project. And when I did that it spit back my
> ORIGINAL project (the one I made a few months ago) and it's files.
>
> What the hell did I do wrong and how can I fix it?

You don't show command lines, but it sounds like there is nothing wrong
except you don't understand what the commands you are typing actually mean.

> I also tried to list the projects in my repository but that doesn't
> seem to work right either. I found this page
> http://www.abbeyworkshop.com/howto/misc/svn01/ that said to run:
>
> svn list --verbose file:///repository_name/project
>
> What I entered was:
>
> svn list --verbose file:///home/chris/programs/project
>
> I get back:
>
> svn: URL 'file:///home/chris/programs/project' non-existent in that
> revision

Certainly. You don't have a project actually called 'project', after all.

> So then I tried:
>
> svn list --verbose file:///home/chris/programs
>
> And get back:
>
> 1 chris Mar 30 22:11 branches/
> 6 chris Apr 02 15:53 http/
> 6 chris Apr 02 15:53 shared/
> 1 chris Mar 30 22:11 tags/
> 8 chris Apr 16 17:43 trunk/
>
> What?? I expected it to list my two projects.

First, understand that a project is nothing more than a directory. Now,
realize that you can arrange directories within a repository however you
like.

So, the fact that you saw something you didn't expect just means you have
arranged your repository in a different way than you thought you had.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 16 10:14:25 2005

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