You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by PIRAMANAYAGAM <na...@hotmail.com> on 2009/01/30 17:47:14 UTC

Clarification in Subversion

Hi all,
 
We are running Subversion 1.4 (Linux Version) in a linux box and have around 5 repositories in our office. We need move project codes from one repository to another repository with message history as per the following.
 

RE: Re: Clarification in Subversion

Posted by PIRAMANAYAGAM <na...@hotmail.com>.
Hi all,

Finally, we are able to extract the dump with all your great ideas.

Thanks for your timely help.

Regards.

Piramanayagam M

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1132058

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Clarification in Subversion

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 2, 2009, at 02:47, PIRAMANAYAGAM wrote:

> When I execute this command under /data/svnrepo,
> cat 1_23612_test_incr.dump | svndumpfilter include versions/ 
> projects/demo/D10 > d10.dump, I am getting the following error.
>
> "svndumpfilter: Invalid copy source path '/main'" @ revision no.21314.
>
> Because, we have created the /demo folder from /main @ revision no. 
> 21314. Will it cause the issue?

Yes. In that case, I think you must "include" /main as well.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1092181

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Re: Clarification in Subversion

Posted by PIRAMANAYAGAM <na...@hotmail.com>.
Hi,

Thanks once again for your reply.

When I execute this command under /data/svnrepo,
cat 1_23612_test_incr.dump | svndumpfilter include versions/projects/demo/D10 > d10.dump, I am getting the following error. 

"svndumpfilter: Invalid copy source path '/main'" @ revision no.21314. 

Because, we have created the /demo folder from /main @ revision no.21314. Will it cause the issue?

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1089490

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Clarification in Subversion

Posted by Hari Kodungallur <hk...@gmail.com>.
On Fri, Jan 30, 2009 at 11:00 PM, PIRAMANAYAGAM <na...@hotmail.com>wrote:

> Hi Hari,
>
> Thanks for your suggestion.
>
> I am currently in /backup/data/svnrepo
>
> I took the full dump using this command - svnadmin dump
> /backup/data/svnrepo/test/ > 1_23612_test_incr.dump
>
> From this full dump, I need a folder (incl. subfolders and files) which is
> located in \test\versions\projects\demo\D4.6. So, I execute the below
> command.
>
> cat 1_23612_test_incr.dump | svndumpfilter include --drop-empty-revs
> --renumber-revs test/versions/projects/demo/D4.6 > d46.dump
>
> Here also the d46.dump file size is 582 bytes. Could you please check am i
> using the right commands? Also, I hope you understand my requirement.
>
>

I am almost certain that the include path given to svndumpfilter is the
issue. You have to make sure the path is correct. Is "test/" part of the
repository. From the commands you are executing, it looks like test is the
directory where the repository exists and not a directory in the repository.

As I suggested in my previous email you can look at the dump file to get an
idea of the directory structure. For example you could  grep Node-path. (cat
1_23612_test_incr.dump |  grep Node-path.. you have a large dump file and so
the output of this command will also be huge and so use more
grep/awk/sort/head/tail or such to filter what you want).

Once you get the path right, I am pretty sure you will be able to get the
filtered dump file right.


regards,
-Hari

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1078771

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Clarification in Subversion

Posted by PIRAMANAYAGAM <na...@hotmail.com>.
Hi Hari,

Thanks for your suggestion.

I am currently in /backup/data/svnrepo

I took the full dump using this command - svnadmin dump /backup/data/svnrepo/test/ > 1_23612_test_incr.dump

Re: Re: Clarification in Subversion

Posted by Hari Kodungallur <hk...@gmail.com>.
On Fri, Jan 30, 2009 at 9:26 PM, PIRAMANAYAGAM <na...@hotmail.com>wrote:

> current location - /backup/data/svnrepo
> svnadmin dump /backup/data/svnrepo/test/ > 1_23612_test_incr.dump
> cat 1_23612_test_incr.dump | svndumpfilter include --drop-empty-revs
> --renumber-revs versions\projects\demo\D4.6 > d46.dump
> svnadmin create --fs-type fsfs /backup/data/svnrepo/aa
> cat d46.dump | svnadmin load /backup/data/svnrepo/aa/
>
> Total Repository size is 5636602783 bytes
> Created d46.dump size is 582 bytes
>
> The created dump is too small. After loading this dump (d46.dump) into new
> repository, only 2 empty revisions are added. So, I hopt it is not working
> case. Could you please provide more suggestions to solve this. My Contact
> no. is 9444258114.



Did you try the svndumpfilter command with the directory name having forward
slashes? I don't think svn uses the backslash internally to store the
directory structure. I have never had a repository on windows, so I might be
wrong, even though I doubt it.

Also, do a simple grep for the directory in the dump file to see if anything
matches. If what you are passing does not match anything in the dump file,
likely you are left with nothing after the filtering.

thanks,
-Hari

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1078635

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Re: Clarification in Subversion

Posted by PIRAMANAYAGAM <na...@hotmail.com>.
current location - /backup/data/svnrepo
svnadmin dump /backup/data/svnrepo/test/ > 1_23612_test_incr.dump
cat 1_23612_test_incr.dump | svndumpfilter include --drop-empty-revs --renumber-revs versions\projects\demo\D4.6 > d46.dump
svnadmin create --fs-type fsfs /backup/data/svnrepo/aa
cat d46.dump | svnadmin load /backup/data/svnrepo/aa/

Total Repository size is 5636602783 bytes
Created d46.dump size is 582 bytes

The created dump is too small. After loading this dump (d46.dump) into new repository, only 2 empty revisions are added. So, I hopt it is not working case. Could you please provide more suggestions to solve this. My Contact no. is 9444258114.

Thanks.

Piramanayagam M

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1078444

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Clarification in Subversion

Posted by Hari Kodungallur <hk...@gmail.com>.
On Fri, Jan 30, 2009 at 9:47 AM, PIRAMANAYAGAM <na...@hotmail.com>wrote:

>  Hi all,
>
> We are running Subversion 1.4 (Linux Version) in a linux box and have
> around 5 repositories in our office. We need move project codes from one
> repository to another repository with message history as per the following.
>
> From <repo1_name>/versions/project/demo/d10 To <repo2_name>/main
>
> Kindly provide your valuable suggestions in detail to achive this.
>
>

Looks like you want to migrate a subdirectory from the existing repository
into a new repository.
In which case, please see this:
http://svn.haxx.se/users/archive-2009-01/0905.shtml

regards,
-Hari

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1077075

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].