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

Re: Use of Subversion to track existing directory

From: Saulius Grazulis <grazulis_at_akl.lt>
Date: 2006-03-19 16:16:16 CET

On Sunday 19 March 2006 17:03, Robert Paulsen wrote:

> I can create the repository:
>
>         svnadmin create /srv/svn/repos/myfiles/
> I know I could create a directory structure with trunk, tags, branches

svn mkdir file:///srv/svn/repos/myfiles/trunk
svn mkdir file:///srv/svn/repos/myfiles/branches
svn mkdir file:///srv/svn/repos/myfiles/tags

Or even better like this:

svn mkdir file:///srv/svn/repos/myfiles/{trunk,branches,tags}

Works on Unix-like systems under bash or tcsh.

(this will give only one revision bump instead of 3).

> import from there but that seems round-about.
> Is there a way to work with
> the existing data using add, copy, checkout, etc, commands?

Try this method:

cd working-copy
svn co file:///srv/svn/repos/myfiles/trunk
svn add *
svn ci

Hope this helps,

-- 
Saulius Gražulis
Visuomeninė organizacija "Atviras Kodas Lietuvai"
P.Vileišio g. 18
LT-10306 Vilnius
Lietuva (Lithuania)
tel/fax:      (+370-5)-210 40 05
mobilus:      (+370-684)-49802, (+370-614)-36366

  • application/pgp-signature attachment: stored
Received on Sun Mar 19 16:17:02 2006

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.