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

Re: Workings of third parameter to svn

From: mark benedetto king <bking_at_inquira.com>
Date: 2002-10-15 23:47:27 CEST

On Tue, Oct 15, 2002 at 11:26:45PM +0200, sgr@rotzorg.org wrote:
> Hi,
>
> i'm trying to understand the meaning and workings of the third parameter
> to svn.
>

I'm not sure what you mean; the third argument to svn could mean
many different things, depending on what the first two are.

> >From the cookbook, i understood that
> $ svn import file:///absolute/path/to/myrepos someproject myproj
> created a new directory myproj in the root of the repositiory's
> filesystem.

Yes.

>
> However, this seems not the case:
> stoereo:/big/svn/repos# ls -alF
> total 36
> drwxrwxr-x 7 svn www-data 4096 Oct 15 22:16 ./
> drwxr-xr-x 3 svn svn 4096 Oct 15 22:16 ../
> -rw-rw-r-- 1 svn www-data 376 Oct 15 22:16 README
> drwxrwxr-x 2 svn www-data 4096 Oct 15 22:16 conf/
> drwxrwxr-x 2 svn www-data 4096 Oct 15 22:19 dav/
> drwxrwxr-x 2 svn www-data 4096 Oct 15 23:14 db/
> -rw-rw-r-- 1 svn www-data 2 Oct 15 22:16 format
> drwxrwxr-x 2 svn www-data 4096 Oct 15 22:16 hooks/
> drwxrwxr-x 2 svn www-data 4096 Oct 15 22:16 locks/
> stoereo:/big/svn/repos#
> There are no subdirs in the root of the repository.

I can see how this could be confusing. These files (and directories)
are, in fact, the repository. The "db" directory is probably the
most important one. It contains a database that stores all of
the files that you place under revision control.

So, physically, the repository is nothing but these files. However,
we rarely think of the repository this way. Instead, we think about
the *logical* repository, which is the *contents* of these
files.

>
> I have entered 2 differend projects, and can check them out
> independently. But there are no subdirectories.
>

That's right. You've made changes to the logical repository (you've
added more contents to the files). You can look and see: they'll be
bigger than before.

> can somebody shed some light on this? Has the filesystems changed so
> that all data is in the same db's?

Yes.

>
> And for antoher question: can i delete one whole project even when the
> projects are in 1 repository?

Well, that depends on how you define "delete".

If you do "svn rm --force -R project" and then "svn commit", you'll
certainly have deleted the project. But you can still get the old
data... that's the whole idea of change management: it's a time machine.
If you decide later that you'd like that data back, there are several
ways to get at it.

--ben

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 15 23:55:55 2002

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

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