You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by sg...@rotzorg.org on 2002/10/15 21:26:45 UTC
Workings of third parameter to svn
Hi,
i'm trying to understand the meaning and workings of the third parameter
to svn.
Re: Workings of third parameter to svn
Posted by mark benedetto king <bk...@inquira.com>.
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
Re: Workings of third parameter to svn
Posted by Karl Fogel <kf...@newton.ch.collab.net>.
Peter Davis <pe...@pdavis.cx> writes:
> I guess this is a pretty good indication that the confusing import syntax is
> hurting people. See
> http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgId=198339 for my
> proposal.
>
> I was looking at making a patch to cmdline/import-cmd.c and related files, but
> frankly it's a little over my head for my first patch. I was hoping it would
> be as simple as just removing the new_entry stuff, but it seems that the
> import_file() and import_dir() stuff used by svn_client_import() were just
> not designed to work without it. Would anyone else care to take a look?
Sure, as soon as can. Can you file an issue for it in the meantime?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Workings of third parameter to svn
Posted by Peter Davis <pe...@pdavis.cx>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I guess this is a pretty good indication that the confusing import syntax is
hurting people. See
http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgId=198339 for my
proposal.
I was looking at making a patch to cmdline/import-cmd.c and related files, but
frankly it's a little over my head for my first patch. I was hoping it would
be as simple as just removing the new_entry stuff, but it seems that the
import_file() and import_dir() stuff used by svn_client_import() were just
not designed to work without it. Would anyone else care to take a look?
On Tuesday 15 October 2002 14:26, sgr@rotzorg.org wrote:
> i'm trying to understand the meaning and workings of the third parameter
> to svn [import].
- --
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9rJhOhDAgUT1yirARAvknAJ9n5pvI2nx48uMZR+uj38Fkc6zr0gCfSTlc
+sW506dQzbzEkdhJ0Lam8fA=
=lI+j
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org