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

Re: svn import

From: John Peacock <jpeacock_at_rowman.com>
Date: 2003-11-17 17:00:47 CET

Mark Eaton wrote:

> I always end up doing a
> svn import proj $SVNROOT/trunk/

However

        svn import proj $SVNROOT/trunk/proj

should work as you expected.

> If I am the only one who thinks this works wrong then I'll just shut up =) but
> it doesn't seem intuitive to me.

I have been bitten by this as well, but then I realized/remembered that import
(unlike other commands that affect the repository) will create as many
intervening directories in the target.

Most Unix tools (like cp and mv), when passed a directory as both the source and
destination, will create the source directory in the target for you (assuming
that was what you meant). However, 'svn import' acts more like this:

        svn import proj/* $SVNROOT/trunk/

which is [mildly] suprising the first couple of times. You'll get over it. ;~)

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 17 17:01:32 2003

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.