我已经像这样过滤了转储文件:
svndumpfilter include /config-tool/trunk < aps.dump > ct-filtered.dump
首先尝试,创建 repo 和 3 个文件夹:
svnadmin create myrepo
svn mkdir file:///home/me/myrepo/folderA file:///home/me/myrepo/folderA/config-tool file:///home/me/myrepo/folderA/config-tool/trunk -m "Go"
Committed revision 1.
svnadmin: File already exists: filesystem '/home/me/myrepo/db', transaction '12-c', path 'folderA/config-tool/trunk'
* adding path : folderA/config-tool/trunk
第二次尝试,创建回购和只有文件夹A
svnadmin create myrepo
svn mkdir file:///home/me/myrepo/folderA -m "Go"
Committed revision 1.
svnadmin load --parent-dir folderA /home/me/myrepo < /home/me/ct-filtered.dump
svnadmin: File not found: transaction '12-c', path 'folderA/config-tool/trunk'
* adding path : folderA/config-tool/trunk
我已经阅读了很多关于这个的主题,不太确定我错过了什么。
在转储本身中,我确认存在路径:
Node-path: config-tool/trunk