You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Pejvan BEIGUI <pe...@online.fr> on 2004/07/30 15:43:49 UTC
suggestion for 'svn import' behaviour
Hello All,
reading the manual of "svn import", I found this :
> Name
> svn import -- Recursively commit a copy of PATH to URL.
> svn import
> Synopsis
> svn import [PATH] URL
> Description
> Recursively commit a copy of PATH to URL. If PATH is omitted “.” is assumed. Parent directories are created in the repository as necessary.
well, it seems that if do the following command :
> svn import MacOSX_200-tome2 file:///Users/pejvan/Safe/subversion-repository/
I get this :
> svn list file:///Users/pejvan/Safe/subversion-repository/
> ch01-fr-UTF8.txt
> ch02-fr-UTF8.txt
> ch04-fr-UTF8.txt
> ch08-fr-UTF8.txt
> dvdod_maker/
> dvdod_schema/
> [...]
(for info :
$ ls MacOSX_200-tome2/
ch01-fr-UTF8.txt ch02-fr-UTF8.txt ch04-fr-UTF8.txt ch08-fr-UTF8.txt
)
while I thought I want to get this :
> svn list file:///Users/pejvan/Safe/subversion-repository/
> MacOSX_200-tome2/
> dvdod_maker/
> dvdod_schema/
> [...]
Which I get with the following command :
> svn import MacOSX_200-tome2 file:///Users/pejvan/Safe/subversion-repository/MacOSX_200-tome2
> Adding MacOSX_200-tome2/ch01-fr-UTF8.txt
> Adding MacOSX_200-tome2/ch02-fr-UTF8.txt
> Adding MacOSX_200-tome2/ch04-fr-UTF8.txt
> Adding MacOSX_200-tome2/ch08-fr-UTF8.txt
This seems to be the opposite behaviour of "Parent directories are
created in the repository as necessary.", which should automatically
create the "MacOSX_200-tome2" in the repository, right?
thanks,
Pejvan
--
Pejvan BEIGUI pejvan@online.fr
Cet email comporte une signature electronique au format OpenPGP/MIME.
Pour votre propre sécurité, tout email semblant provenir de cette
adresse mais ne comportant pas de signature ou une signature
non-valide sera réputé falsifié.
Re: suggestion for 'svn import' behaviour
Posted by Pejvan BEIGUI <pe...@online.fr>.
Campbell wrote:
> Pejvan BEIGUI <pejvan <at> online.fr> writes:
>
>>This seems to be the opposite behaviour of "Parent directories are
>>created in the repository as necessary.", which should automatically
>>create the "MacOSX_200-tome2" in the repository, right?
>>
>>thanks,
>>
>>Pejvan
>>
>
>
> That sentence about "parent directories" is questionably-worded. I think what
> it really means is that the destination URL you are specifying is going to
> be created in a similar way to "mkdir -p". Example: you import a new editor
> project into trunk/editors/myeditor, but your repository doesn't have
> trunk/editors/ yet at all, the parent of "myeditor/" will be automatically
> created.
Let's say that I also find this kind of example misleading:
> Once you have a tree of data ready to go, import the data into the
repository with the svn import command (see Section , “svn import”):
> $ svn import /tmp/project file:///path/to/repos -m "initial import"
> Adding /tmp/project/branches
> Adding /tmp/project/tags
> Adding /tmp/project/trunk
> Adding /tmp/project/trunk/foo.c
> Adding /tmp/project/trunk/bar.c
> Adding /tmp/project/trunk/Makefile
> ...
--
Pejvan BEIGUI pejvan@online.fr
Cet email comporte une signature electronique au format OpenPGP/MIME.
Pour votre propre sécurité, tout email semblant provenir de cette
adresse mais ne comportant pas de signature ou une signature
non-valide sera réputé falsifié.
Re: suggestion for 'svn import' behaviour
Posted by Campbell,
Matthew A <Ma...@Relizon.com>.
Pejvan BEIGUI <pejvan <at> online.fr> writes:
> This seems to be the opposite behaviour of "Parent directories are
> created in the repository as necessary.", which should automatically
> create the "MacOSX_200-tome2" in the repository, right?
>
> thanks,
>
> Pejvan
>
That sentence about "parent directories" is questionably-worded. I think what
it really means is that the destination URL you are specifying is going to
be created in a similar way to "mkdir -p". Example: you import a new editor
project into trunk/editors/myeditor, but your repository doesn't have
trunk/editors/ yet at all, the parent of "myeditor/" will be automatically
created.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org