SVN:创建文件夹的转储文件 [英] SVN: Create a dump file of a folder

查看:40
本文介绍了SVN:创建文件夹的转储文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的 SVN 存储库中创建一个文件夹的转储文件.(我的目标是将此转储导入另一个存储库,但那是另一回事了).

I'm trying to create a dump file of a folder in my SVN repository. (My goal is to import this dump on another repository, but that's another story).

我已经阅读了大约 20 页关于此的内容,他们都告诉我使用 svndumpfilter,但我似乎无法让它工作.

I've read like 20 pages about this and they all tell me to use svndumpfilter, but I can't seem to make it work.

这是我的命令:

C:\>svnadmin dump d:/SvnData/TestingSVN/ | svndumpfilter include /TestingSVN/Trunk/Fms/ > d:\FMS.txt

命令行中的输出是这个奇怪的东西:

The output in the command line is this strange thing:

Including prefixes:
   '/TestingSVN/Trunk/Fms'
* Dumped revision 0.
Revision 0 com*m iDtutmepde da sr e0v.isi
n 1.
Revision 1 committed as 1.
* Dumped revision 2.
Revision 2 committed a*s  D2u.mpe
 revision 3.
Revisio*n  D3u mcpoemdm irtetveids iaosn  34..
Revision*  4D ucmopmemdi trteevdi saiso n4 .5.
Revision 5 com*m iDtutmepde da sr e5v.isi
n 6.
Revision 6 commi*t tDeudm paesd  6r.evi
ion 7.
Revisio*n  D7u mcpoemdm irtetveids iaosn  78..
Revision *8  Dcuommpmeidt treedv iassi o8n. 9.
Revision 9*  cDoummmpietdt erde vaiss i9o.n 1
.
Revisi*o nD u1m0p ecdo mrmeivtitseido na s1 11.0
.
Revision 11 *c oDmummiptetde dr eavsi s1i1o.n 1
.
Revision 12 committed*  aDsu m1p2e.d r
vision 13.
Revision 13 committ*e dD uamsp e1d3 .rev
sion 14.
Revision 14 commit*t eDdu mapse d1 4r.evi
ion 15.
Revision 15 committed as 15.
* Dumped revision 16.
Revision 16 committed as 16.
Dropped 83 nodes:
   '/Branches'
   '/Branches/305'
   '/Branches/305/New Text Document.txt'
   '/Fms'
   '/Fms/ADPropertySheet.cpp'

etc. for 83 nodes...

此外,转储文件本身只有 3 KB,不包含真实数据,只有类似的内容(这不是完整的转储,只是一个示例).

Also, the dump file itself is only 3 KB and contains no real data, only things like that (this is not the complete dump, just a sample).

SVN-fs-dump-format-version: 2
UUID: 592fc9f0-5994-e841-a4dc-653714c95216
Revision-number: 0
Prop-content-length: 56
Content-length: 56
K 8
svn:date
V 27
2009-06-19T15:05:52.001352Z
PROPS-END
Revision-number: 1
Prop-content-length: 112
Content-length: 112
K     7
svn:log
V 38
This is an empty revision for padding.
K 8
svn:date
V 27
2009-06-19T15:11:29.378511Z
PROPS-END

如何解决这个问题?

推荐答案

嘈杂的输出是因为您在控制台上看到来自管道中两个命令的 stderr 混合在一起.如果你把它分成两个命令,它会更有意义:

The noisy output is because you are seeing the stderr from both commands in the pipeline mixed together on your console. If you split this up into two commands it will make more sense:

* Dumped revision 0.
* Dumped revision 1.
* Dumped revision 2.
...

Revision 0 committed as 0.
Revision 1 committed as 1.
Revision 2 committed as 2.
...

希望您能看到这些已合并到您上面的单个输出中.

Hopefully you can see that these are getting combined into your single output above.

否则你的命令的语法看起来不错.但实际上在/TestingSVN/Trunk/Fms"中有任何数据吗?我问是因为我在 Dropped 节点中看到/Fms",这让我想知道您的文件夹是否与您认为的路径不同.您可能想在您的工作副本上尝试 'svn info' 以确认.我认为包含Trunk/Fms"或可能只是Fms"可能是合适的.

Otherwise the syntax of your command looks fine. But is there actually any data at "/TestingSVN/Trunk/Fms"? I ask because I see "/Fms" in the Dropped nodes, and it makes me wonder if perhaps your folder is at a different path than you think it is. You might want to try 'svn info' on your working copy just to confirm. I think an include of "Trunk/Fms" or possibly just "Fms" might be appropriate.

这篇关于SVN:创建文件夹的转储文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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