[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: Scott Palmer <scott.palmer_at_2connected.org>
Date: 2005-05-16 15:06:54 CEST

On May 16, 2005, at 4:29 AM, barophobia wrote:

> On 5/16/05, Max Bowsher <maxb@ukf.net> wrote:
>> 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.
> Confused? Definitely! :)
> Within my repository I don't see anything pertaining to my different
> projects. Isn't that how it's supposed to be?

It is if that is how YOU decided to layout your repository.
Subversion doesn't decide what the directory structure looks like -
you do.

> I mean, isn't everything
> stored in a berkeley db?

That's irrelevant, and not always true.

>> 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.
> Makes sense. Except that I thought every project needed those
> directories. Do they not?

No, they don't. Subversion doesn't care at all what directories you
have in your repo structure. It will happily keep track of whatever
structure you decide to make.

>> Certainly. You don't have a project actually called 'project',
>> after all.
> That is correct, but I also tried changing 'project' to 'mymoney'
> and got:
> [chris_at_localhost ~]$ svn list --verbose file:///home/chris/programs/
> mymoney
> svn: URL 'file:///home/chris/programs/mymoney' non-existent in that
> revision

You didn't look at the output of svn list... it doesn't show any
directory named "mymoney" either.

> 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.

It seems you didn't put directories in your repository for your
projects. It looks like you have a repository with the typical
layout of a one project per repository scheme. Look deeper to see
what is in the 'trunk' folder for example.

>> First, understand that a project is nothing more than a directory.
>> Now,
>> realize that you can arrange directories within a repository
>> however you
>> like.
> My question to this goes back to the berkeley db question above.

Normally you don't interact directly with the database backend.
Forget about it.

>> 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.
> How can I get back on track?

Start with 'svn list'. Use it to see the structure that you actually
stored in Subversion. And read the Subversion book.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 16 15:08:41 2005

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.