Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BAD08DF67 for ; Thu, 9 Aug 2012 04:47:39 +0000 (UTC) Received: (qmail 40950 invoked by uid 500); 9 Aug 2012 04:47:39 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 40344 invoked by uid 500); 9 Aug 2012 04:47:33 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 40308 invoked by uid 99); 9 Aug 2012 04:47:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2012 04:47:31 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=MSGID_MULTIPLE_AT,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [182.50.145.5] (HELO sg2plout10-02.prod.sin2.secureserver.net) (182.50.145.5) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 09 Aug 2012 04:47:22 +0000 Received: (qmail 31603 invoked from network); 9 Aug 2012 04:46:58 -0000 Received: from unknown (122.176.122.61) by sg2plout10-02.prod.sin2.secureserver.net (182.50.145.5) with ESMTP; 09 Aug 2012 04:46:57 -0000 From: "Subodh Singh" To: "'Ryan Schmidt'" Cc: "'Subversion Users'" References: <000b01cd739c$b1b78820$15269860$@singh@proficientinfosoft.com> <030551E2-5362-4E78-8116-7E21E5B876A1@ryandesign.com> <001001cd747b$22dbec10$6893c430$@singh@proficientinfosoft.com> <3B889F4D-A359-4FAD-ABEF-B0C3F8604167@ryandesign.com> In-Reply-To: <3B889F4D-A359-4FAD-ABEF-B0C3F8604167@ryandesign.com> Subject: RE: How to stop delete files/directory from SVN Repo Browser Date: Thu, 9 Aug 2012 10:16:10 +0530 Message-ID: <000001cd75e9$e669b710$b33d2530$@singh@proficientinfosoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac10fN3TD/CIboZrRlONdVrR/n0gAwBbJbmg Content-Language: en-us Thanks Ryan, I am able to stop deletion using pre-commit hook using svnlook. One more question is that do we able to set deletion permission as user based. Some specified users can delete but not all. Thanks Subodh -----Original Message----- From: Ryan Schmidt [mailto:subversion-2012c@ryandesign.com] Sent: Tuesday, August 07, 2012 2:43 PM To: Subodh Singh Cc: Subversion Users Subject: Re: How to stop delete files/directory from SVN Repo Browser On Aug 7, 2012, at 04:00, Subodh Singh wrote: > Ryan Schmidt wrote: > >> On Aug 6, 2012, at 01:28, Subodh Singh wrote: >> >>> I am new to SVN Repository. I need help to stop deletion of >> files/directory from Repo Browser, so that user can't commit if any delete >> operation is occurred. I can get this information using svnlook but after >> commit. I need to catch any delete action before commit. I tried it using >> svn hooks but not able to do so. Please guide me. >> >> It should definitely be possible to write a pre-commit hook to do this. > > Dear Ryan, > > Thanks for reply. Problem is that I tried it to do with svn pre-commit hook > but not able to catch delete action. If you have any script for this then > kindly send it to me. I'm sorry, I don't have time to write this script for you, but it should be easy to write. You'll use "svnlook changed -t" to inspect the incoming transaction, and look for any lines of output starting with "D" meaning "deleted". Remember to use Reply All so that the conversation stays on the mailing list and can benefit everyone.