You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Daniel Shahaf <da...@apache.org> on 2016/12/08 10:48:18 UTC

svnsync: fewer round-trips for small revisions (was: Re: svnsync on large files)

Daniel Shahaf wrote on Thu, Dec 08, 2016 at 06:20:20 +0000:
> The steps should be this:
> 
> f() {
>   token="$USER@$(hostname):${RANDOM}:${RANDOM}"
>   svn propset --revprop -r0 -- svn:sync-lock $token
>   svn propget --revprop -r0 --strict svn:sync-lock | fgrep -q -- $token || return 1
>   svn propset --revprop -r0 svn:sync-currently-copying 54618
>   svnrdump dump -r54618 --incremental https://mysourceturl/repository >tmpfile
>   svnadmin load /svnmirror/projektablage <tmpfile
>   svn propset --revprop -r0 svn:sync-last-merged-rev 54618
>   svn propdel --revprop -r0 svn:sync-currently-copying
>   svn propdel --revprop -r0 svn:sync-lock
> }
> 
> Note:
> 
> 1. Using the same metadata revprops and order as svnsync.

Looking at this again: svn:sync-lock and svn:sync-currently-copying
serve the same purpose; if we could combine them, we'd save two
round-trips per revision, which would be a win for small revisions.

Cheers,

Daniel