Ramkumar Ramachandra wrote on Tue, Sep 28, 2010 at 00:44:40 +0530: > Hi Daniel, > > Daniel Shahaf writes: > > svnsync allows you to sync a subdir of a repository (i.e., > > svnsync $REPOS/trunk/A/B $MIRROR > > ), but does it also create /trunk/A/B in the mirror? > > Yes, it does. > > > But for now I still think that svnrdump invocation I quoted above > > shouldn't have outputted a 'create /trunk' entry in the dumpfile :-). > > @all, what do you think? > > Again, it works exactly like svnsync- you might like to read the > tests. Here's a verbose example. >
So, I suppose we should have to leave it the way it is, to parallel svnsync. Okay. > $ cat /test.dump > Node-path: test.txt > Node-path: trunk > Node-path: trunk/A > Node-path: trunk/A/B > Node-path: trunk/A/B/E > Node-path: trunk/A/B/E/alpha > Node-path: trunk/A/B/E/beta > Node-path: trunk/A/B/F > Node-path: trunk/A/B/lambda > Node-path: trunk/A/C > Node-path: trunk/A/D > Node-path: trunk/A/D/G > Node-path: trunk/A/D/G/pi > Node-path: trunk/A/D/G/rho > Node-path: trunk/A/D/G/tau > Node-path: trunk/A/D/H > Node-path: trunk/A/D/H/chi > Node-path: trunk/A/D/H/omega > Node-path: trunk/A/D/H/psi > Node-path: trunk/A/D/gamma > Node-path: trunk/A/mu > Node-path: trunk/iota > Node-path: trunk/A/D/H/psi > Node-path: trunk/A > Node-path: trunk/iota > Node-path: trunk/B > Node-path: trunk/A > Node-path: trunk/A > Node-path: trunk/B/D > Node-path: trunk Why does "Node-path: trunk" appear twice? > $ # svnadmin create /test-repo, /mirror and enable pre-revprop-change > $ svnadmin load /test-repo < /test.dump > $ svnsync init file:///mirror file:///test-repo/trunk/A/B > $ svnsync sync file:///mirror > $ svnadmin dump /mirror | grep Node-path: > Node-path: trunk > Node-path: trunk/A > Node-path: trunk/A/B > Node-path: trunk/A/B/E > Node-path: trunk/A/B/E/alpha > Node-path: trunk/A/B/E/beta > Node-path: trunk/A/B/F > Node-path: trunk/A/B/lambda > Node-path: trunk/A > Node-path: trunk/A > Node-path: trunk/A > Node-path: trunk/A/G > Node-path: trunk/A/G/pi > Node-path: trunk/A/G/rho > Node-path: trunk/A/G/tau > Node-path: trunk/A/H > Node-path: trunk/A/H/chi > Node-path: trunk/A/H/omega > Node-path: trunk/A/H/psi > Node-path: trunk/A/gamma > Node-path: trunk > $ svnrdump dump file:///test-repo/trunk/A/B > Node-path: trunk > Node-path: trunk/A > Node-path: trunk/A/B > Node-path: trunk/A/B/E > Node-path: trunk/A/B/E/alpha > Node-path: trunk/A/B/E/beta > Node-path: trunk/A/B/F > Node-path: trunk/A/B/lambda > Node-path: trunk/A > Node-path: trunk/A > Node-path: trunk/A > Node-path: trunk/A/G > Node-path: trunk/A/G/pi > Node-path: trunk/A/G/rho > Node-path: trunk/A/G/tau > Node-path: trunk/A/H > Node-path: trunk/A/H/chi > Node-path: trunk/A/H/omega > Node-path: trunk/A/H/psi > Node-path: trunk/A/gamma > Node-path: trunk > > Hope that helps. > > -- Ram Thanks for the example, Daniel