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

Re: SVN dump: copying of directories.

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2003-11-05 15:45:33 CET

Lev Serebryakov <lev@serebryakov.spb.ru> writes:

> Hello users,
>
> I write some converter, which generate SVN dump file to import into
> subversion.
>
> Such construction works well, copy directory with all content:
>
> Node-path: /some/path
> Node-kind: dir
> Node-action: add
> Node-copyfrom-path: /some/other/path
> Node-copyfrom-rev: OLDREV
>
>
> Does such construction work:
>
> Node-path: /some/path
> Node-kind: dir
> Node-action: change
> Node-copyfrom-path: /some/other/path
> Node-copyfrom-rev: OLDREV
>
> when /some/path already exists?
>
> I want to copy all files from /some/other/path to /some/path, adding
> new files, overwriting (changing) existing, etc. But it seems, that
> it doesn't work and directories wit CONTENT could be copied only
> with `action: add' and I need to generate copy instruction for each
> file in /some/other/path
>
> Am I right?

First, 'change' with copyfrom arguments means nothing. The dumpfile
doesn't require that you specify intermediate directories (those
directories that aren't explicitly modified, but are parents of paths
that are) -- only talk about the things you want to change.

Secondly, if you 'add' /some/path with copyfrom args that point to
/some/other/path, you will have perfectly copied that directory and
everything in it. In other words, this one command has effectively
'add'ed all of the children of /some/other/path as children of
/some/path. If you then wish to modify things down inside the new
directory, do so. You can 'change' those things, you can 'add' new
things, you can 'delete' things and then re-'add' things of the same
name (to break the line of history). Whatever. But only talk about
the paths you explicitly need to be different than they were in their
pre-copy incarnations.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 5 15:48:38 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.