You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Giulio Troccoli <Gi...@uk.linedata.com> on 2007/01/22 10:08:36 UTC
Dump a single project
Hi everybody,
I am in need of moving a specific project in my repository to a new
dedicated repository. The project has grown enough to deserve its own
repository.
I cannot use svn copy because that does not support cross-repository
copying.
I cannot use svn export because I need to maintain the whole revision
history. The revision number itself is not important, but the order of
the commits and the log messages are.
On the other hand svnadmin dump seems to work only on the whole
repository, which is not what I want.
So, is there a way to dump a part of a repository, dumping the log
messages as well, so that I can then use svnadmin load?
Thanks
Giulio
-------------------
Giulio Troccoli
Technical Consultant
Linedata Services (UK) Ltd. Bishopsgate Court, 4-12 Norton Folgate,
London E1 6DB
T +44 (0)20 7360 1914 F +44 (0)20 7360 1974
E giulio.troccoli@uk.linedata.com
<ma...@uk.linedata.com> W www.linedata.com
<http://www.linedata.com>
MSN Messenger giulio@troccoli.it
RE: Dump a single project
Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
Thanks Ben. Maybe next time I will RTFM fully LOL
>
> Have a look at svndumpfilter, which is included with svn.
>
>
> $ svndumpfilter help include
> include: Filter out nodes without given prefixes from dumpstream.
> usage: svndumpfilter include PATH_PREFIX...
>
> Valid options:
> --drop-empty-revs : Remove revisions emptied by filtering.
> --renumber-revs : Renumber revisions left after filtering.
> --preserve-revprops : Don't filter revision properties.
> --quiet : Do not display filtering statistics.
>
>
> // ben
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Dump a single project
Posted by christian unger <ch...@mac.com>.
create the new repos with svnadmin load --force-uuid?
after which svn switch -relocate sgould work
cu
On 22.01.2007, at 15:36, Giulio Troccoli wrote:
>
> That worked a treat, but now I have another problem.
>
> I had already a WC for that project under the old repository. Now
> that I
> have created the new repository how can I "move" my WC to the new
> repository? Svn switch --relocate "can only change the repository part
> of an URL". I am not even sure this is possible at all, other than
> deleting the old WC and checking it out again from the new repository.
>
> Thanks
> Giulio
>
>>
>> Have a look at svndumpfilter, which is included with svn.
>>
>>
>> $ svndumpfilter help include
>> include: Filter out nodes without given prefixes from dumpstream.
>> usage: svndumpfilter include PATH_PREFIX...
>>
>> Valid options:
>> --drop-empty-revs : Remove revisions emptied by filtering.
>> --renumber-revs : Renumber revisions left after
>> filtering.
>> --preserve-revprops : Don't filter revision properties.
>> --quiet : Do not display filtering statistics.
>>
>>
>> // ben
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: Dump a single project
Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
That worked a treat, but now I have another problem.
I had already a WC for that project under the old repository. Now that I
have created the new repository how can I "move" my WC to the new
repository? Svn switch --relocate "can only change the repository part
of an URL". I am not even sure this is possible at all, other than
deleting the old WC and checking it out again from the new repository.
Thanks
Giulio
>
> Have a look at svndumpfilter, which is included with svn.
>
>
> $ svndumpfilter help include
> include: Filter out nodes without given prefixes from dumpstream.
> usage: svndumpfilter include PATH_PREFIX...
>
> Valid options:
> --drop-empty-revs : Remove revisions emptied by filtering.
> --renumber-revs : Renumber revisions left after filtering.
> --preserve-revprops : Don't filter revision properties.
> --quiet : Do not display filtering statistics.
>
>
> // ben
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Dump a single project
Posted by Jeff Smith <js...@robotronics.com>.
On Monday 22 January 2007 07:46, Giulio Troccoli wrote:
> That worked a treat, but now I have another problem.
>
> I had already a WC for that project under the old repository. Now
> that I have created the new repository how can I "move" my WC to
> the new repository? Svn switch --relocate "can only change the
> repository part of an URL". I am not even sure this is possible at
> all, other than deleting the old WC and checking it out again from
> the new repository.
Oh, I would check out a new WC (preserving the old one), then copy
modified working files to the new WC. Doesn't matter if you copy ones
that weren't changed, but make sure you don't copy old .svn stuff.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Dump a single project
Posted by "B. Smith-Mannschott" <be...@gmail.com>.
On Jan 22, 2007, at 11:08, Giulio Troccoli wrote:
> I am in need of moving a specific project in my repository to a new
> dedicated repository. The project has grown enough to deserve its
> own repository
[snip]
> On the other hand svnadmin dump seems to work only on the whole
> repository, which is not what I want.
>
> So, is there a way to dump a part of a repository, dumping the log
> messages as well, so that I can then use svnadmin load?
>
>
Have a look at svndumpfilter, which is included with svn.
$ svndumpfilter help include
include: Filter out nodes without given prefixes from dumpstream.
usage: svndumpfilter include PATH_PREFIX...
Valid options:
--drop-empty-revs : Remove revisions emptied by filtering.
--renumber-revs : Renumber revisions left after filtering.
--preserve-revprops : Don't filter revision properties.
--quiet : Do not display filtering statistics.
// ben
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org