[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: how to disable svn's copy and move command?

From: Les Mikesell <lesmikesell_at_gmail.com>
Date: Wed, 18 Jan 2012 08:03:29 -0600

On Wed, Jan 18, 2012 at 6:14 AM, Nico Kadel-Garcia <nkadel_at_gmail.com> wrote:
>>>
>>> hi,all.
>>>
>>> I use webdav to host a svn repository, for some reason I want to
>>> disable copy and move command, ie. uses can't use 'svn copy' and 'svn
>>> move' to commit.
>>>
>>> I know I can use pre-commit to disable copy and move, and is there
>>> another way to do this?
>>
>>
>> I'm not sure this will accomplish what you want.  It won't prevent users
>> from checking out files, using their system's own filesystem commands to
>> move them, then checking them in in a new location.
>
> I can actually see reasons for this. Forcing an import forces a new
> history to be started, and breaks the cross-branch dependencies that
> are the sworn archenemy of clearing out debris with svndumpfilter when
> rebuilding or transferring a repository.

The pre-commit hook should work, but it will prevent the
normal/expected use of branching, tagging etc., so it isn't going to
act much like a subversion repository when you break those operations.

-- 
   Les Mikesell
      lesmikesell_at_gmail.com
Received on 2012-01-18 15:04:02 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.