On 08/06/2010 04:30 AM, Daniel Shahaf wrote: > Yes, a pre-uuid-change hook (and disallowing a UUID change unless it exists) > is one option. > > But that means the logic lives in libsvn_repos, so you have to think how > 'svnadmin setuuid' would interact with it...
We just follow the pattern that already exists. By default, 'svnadmin setuuid' would bypass the hooks. (In generally, I think it is assumed that anyone who can run 'svnadmin' on a repository directly can also modify its hooks.) And then we add --use-pre-uuid-change-hook and --use-post-uuid-change-hook options. See 'svnadmin setrevprop' / svn_repos_fs_change_rev_prop3() and 'svnadmin load' / svn_repos_load_fs3() for prior art. -- C. Michael Pilato <cmpil...@collab.net> CollabNet <> www.collab.net <> Distributed Development On Demand
signature.asc
Description: OpenPGP digital signature