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

Confusing behaviour with import

From: <Runge.External2_at_infineon.com>
Date: 2004-09-21 13:23:20 CEST

Hi *,
I just came to the following issue:
Imagine a small project called 'testprj' with two files, 'test1.c' and
'test2.c', that reside inside the folder testprj/
|- test1.c
|- test2.c
when doing an 'svn import testprj/ <repos>', the files test1.c and
test2.c get imported directly into <repos> without creating the folder
testprj in <repos>. This behaviour can be seen in the various GUI tools,
too. You mark 'testprj', say import to <repos>, and testprj/ is not
imported, only the two files.
In lager projects with subdirs, these subdirs are created in the
The command line svn command import can be understood to "import this
project under that name into repos", so specifying svn import testprj/
<repos>/testprj/ is something you can get used to, but as all the gui
tools show this behavior too, this is misleading. Marking testprj/ and
pressing import behaves like I would expect from marking everything
unter testprj/ (test1.c and test2.c) and then pressing import.
I have fallen into this trap several times now and I guess nearly every
new user will do so, too.
What do you think? a problem with the various gui clients or something
to improve in svn itself?
Received on Tue Sep 21 14:26:04 2004

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.