svndumpfilter失败,并显示"Invalid copy source path ...".错误 [英] svndumpfilter fails with "Invalid copy source path..." error

查看:433
本文介绍了svndumpfilter失败,并显示"Invalid copy source path ...".错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将部分SVN存储库异地移动到AWS实例&正在关注此页面(存储库维护)

I want to move part of my SVN repo offsite, onto an AWS instance & am following this page (Repository Maintenance)

我已提取整个仓库的dump(Windows命令):

I have taken a dump of the whole repo (Windows commands):

  • svnadmin dump c:\repo > all_repo

下一步是对其进行过滤,以仅包括我感兴趣的项目(称为"M1").

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 in the title of this post. The exact wording is:

svndumpfilter:无效的复制源路径'/Personal/Richard/M1_Config'

svndumpfilter: Invalid copy source path '/Personal/Richard/M1_Config'

该进程尝试写入不存在的管道.

The process tried to write to a nonexistent pipe.

该错误所引用的文件夹是我在个人文件夹下编写并提交的配置实用程序,它根本不在root/m1 ...文件夹下.我不想将其包含在已过滤的文件中,但不知道如何在svn命令中指出这一点.

The folder that the error refers to is a configuration utility that I wrote and submitted under my personal folder, and it is not under the root/m1... folder at all. I do not want to include it in the filtered file, but do not know how to indicate this to the svn commands.

  1. 在完全排除Personal/Richard/M1_Config文件夹的同时,如何正确过滤整个M1文件夹及其子文件夹?
  2. 如何确定导出的文件是否包含正确的信息,以正确地在远程SVN上重新创建M1文件夹?

推荐答案

在某些时候,/Personal/Richard/M1_Config已被复制到M1路径.该错误消息是说由于源已被滤除而无法执行复制.检查svndumpfilter抱怨的版本.

At some point /Personal/Richard/M1_Config has been copied to the M1 path. The error message is say that it can't perform the copy since the source has been filtered out. Check the revision that svndumpfilter complained about.

即使您不想在最终导入中使用它,也必须包含/Personal/Richard/M1_Config路径.您还需要包括/Personal/Richard/Personal路径,因为每个路径都位于其父级中.您的命令必须是:

You must include the /Personal/Richard/M1_Config path even if you don't want it in the final import. You also need to include the /Personal/Richard and /Personal paths since each resides in it's parent. Your command needs to be:

type all_repo | svndumpfilter include M1 "/Personal" --drop-empty-revs > m1 

如果您有其他不需要的路径,请说出/Personal/James并且希望排除它们,则可以运行第二个svndumpfilter来去除它们:

If you have other paths, say /Personal/James that aren't needed and you wish to exclude them then you can run a second svndumpfilter to strip them:

type m1 | svndumpfilter exclude "/Personal/James" --drop-empty-revs > m1_2

这篇关于svndumpfilter失败,并显示"Invalid copy source path ...".错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆