svndumpfilter

Can I use Regular expression in svndumpfilter include statement?

我的未来我决定 提交于 2020-01-15 05:23:13
问题 I need to export data from svn (server on Windows), but i don't want to include root directory. Example: svn -project1 --trunk --branches -project2 --trunk --branches --onemorefolder I want to include to project1.dump folders: trunk and branches (not project1) I use: svnadmin dump /svn/ | svndumpfilter include --drop-empty-revs --renumber-revs /project1/trunk /project1/branches | sed "s/Node-path:[ ]project1\//Node-path: /g" -b | sed "s/Node-copyfrom-path:[ ]project1\//Node-copyfrom-path: /g"

svndumpfilter fails with “Invalid copy source path…” error

北城余情 提交于 2019-12-18 12:58:33
问题 I want to move part of my SVN repo offsite, onto an AWS instance & am following this page (Repository Maintenance) I have taken a dump of the whole repo (Windows commands): svnadmin dump c:\repo > all_repo Next is to filter it, to include only the project I am interested in (which is called "M1"). type all_repo | svndumpfilter include M1 --drop-empty-revs > m1 I know this is correct, as I have done it on some of the other projects already. On this project, it breaks with the error indicated

Move Subversion repository without history

会有一股神秘感。 提交于 2019-12-12 12:35:49
问题 There are a lot of posts on moving a Subversion history with version history but i am looking to do something different. Basically we have a repository that has been used as a proof of concept and we want to archive this. However we want to create a new repository with the latest version of some the code but with author histroy saved but it's a fresh start so we aren't interested in keeping the version history. Plus we are trying to keep the repository size down as there were binaries saved

SVNDumpFilter changing paths before adding them?

☆樱花仙子☆ 提交于 2019-12-10 11:27:37
问题 I'm using svndumpfilter to extract single projects from a larger repo and import them into their own repo. Something like this: svndumpfilter include --drop-empty-revs --renumber-revs Trunk/Source/Project1 < full.dump > Project1.dump It worked okay with one project, but on the second one, I notice that the resulting filtered dump does not start by adding a path. See the first two revisions (renumbered): SVN-fs-dump-format-version: 2 UUID: c6612063-4e6b-459c-a579-78605fb1e4b5 Revision-number:

How to migrate a codebase from one svn repo to another preserving history?

一个人想着一个人 提交于 2019-12-07 03:46:06
问题 I have a branch in a badly structured svn repo that needs to be stripped out and moved to another svn repository. (I'm trying to clean it up some). If I do an svn log and not stop on copy/rename I can see all 3427 commits that I care about. Is there some way to dump the revisions out, short of writing some major scripts? I would follow the advice in this question but this branch has been moved all over the place and I would like to preserve the moves as well. 回答1: I guess this might be

svndumpfilter --drop-empty-revs keeps padding revision

↘锁芯ラ 提交于 2019-12-07 02:15:02
问题 We are splitting a big svn repository (100k+ revs) into several smaller repos. I am using svndumpfilter (v1.7.2) to split the dump and svndumptool/sed to filter the big dump. Everything works fine, except that there are still some "padding revisions" in my filtered dump, even though I used the option "drop-empty-revs". This is not too problematic when we have less than 10% of useless "padding revisions" but sometimes, the new repo has only a few hundreds real revisions that are buried in 30k+

SVNDumpFilter changing paths before adding them?

纵饮孤独 提交于 2019-12-06 07:30:47
I'm using svndumpfilter to extract single projects from a larger repo and import them into their own repo. Something like this: svndumpfilter include --drop-empty-revs --renumber-revs Trunk/Source/Project1 < full.dump > Project1.dump It worked okay with one project, but on the second one, I notice that the resulting filtered dump does not start by adding a path. See the first two revisions (renumbered): SVN-fs-dump-format-version: 2 UUID: c6612063-4e6b-459c-a579-78605fb1e4b5 Revision-number: 0 Prop-content-length: 56 Content-length: 56 K 8 svn:date V 27 2010-05-11T20:45:07.903005Z PROPS-END

svndumpfilter --drop-empty-revs keeps padding revision

别说谁变了你拦得住时间么 提交于 2019-12-05 07:19:14
We are splitting a big svn repository (100k+ revs) into several smaller repos. I am using svndumpfilter (v1.7.2) to split the dump and svndumptool/sed to filter the big dump. Everything works fine, except that there are still some "padding revisions" in my filtered dump, even though I used the option "drop-empty-revs". This is not too problematic when we have less than 10% of useless "padding revisions" but sometimes, the new repo has only a few hundreds real revisions that are buried in 30k+ "padding revisions". Here is the command I use and the revisions that are included svndumpfilter -

how to use svndumpfilter to exclude a certain revision

守給你的承諾、 提交于 2019-12-05 04:43:28
问题 I have an SVN repository with a bad revision or two. I need to get rid of them! I was planning on using the svndumpfilter tool, which has an exclude command. However, I cannot figure out how to use it to exclude a revision. Everytime I use it, I end up with a Malformed dumpfile header error. See the command below; I want to exclude revision 23, and code is the directory containing the repository. >svndumpfilter exclude 23 code Excluding prefixes: '/23' '/code' SVN-fs-dump-format-version: 2

Remove specific files from revision history

夙愿已清 提交于 2019-12-04 01:40:47
问题 I am trying to remove specific files from the revision history that I did not mean to commit. Can someone provide a way to do this? 回答1: You'll need to use svndumpfilter tool. The procedure involves dumping your repository, filtering (with svndumpfilter ) your dumpfile, and reloading the results into a new repository. See this chapter in the SVNBook for details. 回答2: Besides the filtering repository dump with svndumpfilter there is another solution that allows you to get rid of specific files