3

我已经像这样过滤了转储文件:

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

4

1 回答 1

1

根据您指定的第二种情况,以下将起作用:

请注意,我们正在创建folderA/config-tool,而不仅仅是folderA.

  1. svndumpfilter include /config-tool/trunk < aps.dump > ct-filtered.dump
  2. svnadmin create myrepo
  3. svn mkdir file:///home/me/myrepo/folderA/config-tool --parents -m "Go"
  4. svnadmin load --parent-dir folderA myrepo < ct-filtered.dump
于 2013-11-15T13:48:56.997 回答