| 1 | = 2012-03-09 = |
| 2 | |
| 3 | == svndumpfilter == |
| 4 | |
| 5 | * 由於 trac 的 svn 裡有 hadoop4win-setup 目錄,而 sourceforge 的 svn 紀錄是新的,所以想試試看能否合併。 |
| 6 | * [參考] [http://sourceforge.net/apps/trac/sourceforge/wiki/SVN%20adminrepo#Filteringthedumpfileoptional SourceForge 的 SVN 匯入文件有提到 Filtering the dump file (optional)] |
| 7 | * [參考] [http://svnbook.red-bean.com/en/1.5/svn.reposadmin.maint.html#svn.reposadmin.maint.filtering SVNBOOK 也有提到 Filtering Repository History] |
| 8 | * 採用 SVNBOOK 的步驟,首先把 hadoop4win 的部份獨立成一個 Repository |
| 9 | {{{ |
| 10 | jazz@Wdebian:~/trac_pool/trac_pool/grid$ svnadmin dump svnroot/ > grid_svn_dumpfile |
| 11 | jazz@Wdebian:~/trac_pool/trac_pool/grid$ svndumpfilter include hadoop4win-setup < grid_svn_dumpfile > hadoop4win_dumpfile |
| 12 | jazz@Wdebian:~/trac_pool/trac_pool/grid$ svnadmin create hadoop4win |
| 13 | jazz@Wdebian:~/trac_pool/trac_pool/grid$ svnadmin load --ignore-uuid hadoop4win < hadoop4win_dumpfile |
| 14 | }}} |
| 15 | * 做到這一步,我們可以拿到一個只有 hadoop4win-setup 這個目錄的 svnroot。 |