You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Somashekarappa, Anup (CWM-NR)" <an...@rbc.com> on 2013/10/29 15:35:37 UTC

Svndumpfilter


Hi Guys,

I am trying to extract one folder "B" from the repository "Current_repo"
and create a separate reposiotry.

The followed the below steps but nothing has been loaded to the new
repository "new_repo".

*	svnadmin dump /var/svn/data/Current_repo > repo.dump
*	cat repo.dump | svndumpfilter include --drop-empty-revs
--renumber-revs http://localhost/svn/Current_repo/B > sv.dump
*	svnadmin load /var/svn/data/new_repo < sv.dump


Thanks & Regards,
Anup T S

______________________________________________________________________

This email is intended only for the use of the individual(s) to whom it is addressed and may be privileged and confidential.
Unauthorised use or disclosure is prohibited. If you receive this e-mail in error, please advise immediately
and delete the original message. This message may have been altered without your or our knowledge
and the sender does not accept any liability for any errors or omissions in the message.

Emails are monitored by supervisory personnel in jurisdictions where monitoring is permitted. 
Such communications are retained and may be produced to regulatory authorities or others with legal rights to the information.

Re: Svndumpfilter

Posted by Les Mikesell <le...@gmail.com>.
On Wed, Oct 30, 2013 at 8:15 AM, Thorsten Schöning
<ts...@am-soft.de> wrote:
> Guten Tag Somashekarappa, Anup (CWM-NR),
> am Mittwoch, 30. Oktober 2013 um 13:43 schrieben Sie:
>
>> May I know how to include the '/GTS/ENUMS' part?
>
> Please always respond to the list. I'm not sure but you may give more
> than one path separated by spaces, like /GTS /GTS/ENUMS.
>

Is there any way to actually clean things up and make the
dumped/filtered/loaded version start at a path after a move while
preserving the history of changes other than the top-level move?  For
example, we have some projects that were initially converted from cvs
and loaded in one place, then (probably with no other changes) moved
to a different place in the tree of projects.  If I ever wanted to
extract individual projects into their own repository, would there be
a way to keep the whole history of changes within the project but lose
the old paths?   Coming from a cvs background, the idea of the
location of the top level of a project permanently becomes part of its
history was, ummm, surprising.

-- 
   Les Mikesell
     lesmikesell@gmail.com

Re: Svndumpfilter

Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag Somashekarappa, Anup (CWM-NR),
am Mittwoch, 30. Oktober 2013 um 13:43 schrieben Sie:

> May I know how to include the '/GTS/ENUMS' part?

Please always respond to the list. I'm not sure but you may give more
than one path separated by spaces, like /GTS /GTS/ENUMS.

svndumpfilter help

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail:Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow


Re: Svndumpfilter

Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag Somashekarappa, Anup (CWM-NR),
am Mittwoch, 30. Oktober 2013 um 11:56 schrieben Sie:

> But the folder ENUMS doesn't exists under GTS_STL and not sure why this is being pointed.

Because you need to consider your repo's history and it's changes:
ENUMS did exist under GTS_STL in some former revision and is needed as
part of the history of the folder you want to extract.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail:Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow


RE: Svndumpfilter

Posted by "Somashekarappa, Anup (CWM-NR)" <an...@rbc.com>.
Hi,

Here is the structure.

ROOT_LEVEL
    -MTS
    -GTS
      -GTS_STL
         -branch
	   -trunk
	   -tags
      -THS_STL

Repository name - ROOT_LEVEL
Folder to be extracted from the repsoitory  'ROOT_LEVEL' - GTS
Number of revision - 1,10,100

Please find the last few lines while creating the svndumpfilter

Revision 94946 skipped.
Revision 94947 committed as 94947.
Revision 94948 skipped.
Revision 94949 skipped.
Revision 94950 skipped.
svndumpfilter: E200003: Invalid copy source path '/GTS_STL/ENUMS'
    
But the folder ENUMS doesn't exists under GTS_STL and not sure why this is being pointed.


Thanks & Regards,
Anup T S

-----Original Message-----
From: Thorsten Schöning [mailto:tschoening@am-soft.de] 
Sent: 2013, October, 30 6:32 AM
To: users@subversion.apache.org
Subject: Re: Svndumpfilter

Guten Tag Somashekarappa, Anup (CWM-NR), am Mittwoch, 30. Oktober 2013 um 11:22 schrieben Sie:

> svndumpfilter: E200003: Invalid copy source path '/Some/Path'.

/Some/Path is not in your include, but the path you want to include is copies from that form the error message. You need to resolve this issue, either by providing the path form the error message as include, and every path this path needs, or using some other things svndumpfilter provides.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail:Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

______________________________________________________________________

This email is intended only for the use of the individual(s) to whom it is addressed and may be privileged and confidential.
Unauthorised use or disclosure is prohibited. If you receive this e-mail in error, please advise immediately
and delete the original message. This message may have been altered without your or our knowledge
and the sender does not accept any liability for any errors or omissions in the message.

Emails are monitored by supervisory personnel in jurisdictions where monitoring is permitted. 
Such communications are retained and may be produced to regulatory authorities or others with legal rights to the information.


Re: Svndumpfilter

Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag Somashekarappa, Anup (CWM-NR),
am Mittwoch, 30. Oktober 2013 um 11:22 schrieben Sie:

> svndumpfilter: E200003: Invalid copy source path '/Some/Path'.

/Some/Path is not in your include, but the path you want to include is
copies from that form the error message. You need to resolve this
issue, either by providing the path form the error message as include,
and every path this path needs, or using some other things
svndumpfilter provides.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail:Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow


RE: Svndumpfilter

Posted by "Somashekarappa, Anup (CWM-NR)" <an...@rbc.com>.

Hi,

It worked for small repository but getting the below error for a big
repository.

svndumpfilter: E200003: Invalid copy source path '/Some/Path'.


The dump file is 15G


Thanks & Regards,
Anup T S

-----Original Message-----
From: Stefan Sperling [mailto:stsp@elego.de] 
Sent: 2013, October, 29 10:44 AM
To: Somashekarappa, Anup (CWM-NR)
Cc: users@subversion.apache.org
Subject: Re: Svndumpfilter

On Tue, Oct 29, 2013 at 08:05:37PM +0530, Somashekarappa, Anup (CWM-NR)
wrote:
> 
> 
> Hi Guys,
> 
> I am trying to extract one folder "B" from the repository
"Current_repo"
> and create a separate reposiotry.
> 
> The followed the below steps but nothing has been loaded to the new 
> repository "new_repo".
> 
> *	svnadmin dump /var/svn/data/Current_repo > repo.dump
> *	cat repo.dump | svndumpfilter include --drop-empty-revs
> --renumber-revs http://localhost/svn/Current_repo/B > sv.dump

I think you have a usage error.

  $ svndumpfilter help include                            
  include: Filter out nodes without given prefixes from dumpstream.
  usage: svndumpfilter include PATH_PREFIX...
                               ^^^^^^^^^^^

What PATH_PREFIX is meant to say is that svndumpfilter expects an
in-repository path. But you gave it a URL.

Try something like:

    cat repo.dump | svndumpfilter include --drop-empty-revs
      --renumber-revs /B > sv.dump

> *	svnadmin load /var/svn/data/new_repo < sv.dump
______________________________________________________________________

This email is intended only for the use of the individual(s) to whom it is addressed and may be privileged and confidential.
Unauthorised use or disclosure is prohibited. If you receive this e-mail in error, please advise immediately
and delete the original message. This message may have been altered without your or our knowledge
and the sender does not accept any liability for any errors or omissions in the message.

Emails are monitored by supervisory personnel in jurisdictions where monitoring is permitted. 
Such communications are retained and may be produced to regulatory authorities or others with legal rights to the information.


Re: Svndumpfilter

Posted by Stefan Sperling <st...@elego.de>.
On Tue, Oct 29, 2013 at 08:05:37PM +0530, Somashekarappa, Anup (CWM-NR) wrote:
> 
> 
> Hi Guys,
> 
> I am trying to extract one folder "B" from the repository "Current_repo"
> and create a separate reposiotry.
> 
> The followed the below steps but nothing has been loaded to the new
> repository "new_repo".
> 
> *	svnadmin dump /var/svn/data/Current_repo > repo.dump
> *	cat repo.dump | svndumpfilter include --drop-empty-revs
> --renumber-revs http://localhost/svn/Current_repo/B > sv.dump

I think you have a usage error.

  $ svndumpfilter help include                            
  include: Filter out nodes without given prefixes from dumpstream.
  usage: svndumpfilter include PATH_PREFIX...
                               ^^^^^^^^^^^

What PATH_PREFIX is meant to say is that svndumpfilter expects
an in-repository path. But you gave it a URL.

Try something like:

    cat repo.dump | svndumpfilter include --drop-empty-revs
      --renumber-revs /B > sv.dump

> *	svnadmin load /var/svn/data/new_repo < sv.dump