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

Re: Obtaining Text Status

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Mon, 5 Apr 2010 21:03:48 +0100

On 5 April 2010 18:55, Stefan Küng <tortoisesvn_at_gmail.com> wrote:
> On 04.04.2010 12:47, Peruri, Rama Mohan Rao wrote:
>> Hi ,
>>
>> During pre-commit I would like to differentiate between a ‘missing’
>> file and ‘deleted’ file. I would like to enforce a rule where files
>> or directories can only be deleted by using the SVN Delete command in
>>  Tortoise SVN. Commit of files deleted from windows explorer should
>> be blocked.
>>
>> Can I implement such a check in pre-commit client side hook?
>
> no, TSVN doesn't provide that information to its hook scripts.
> But why do you want to do this anyway? Missing files are automatically
> changed to 'deleted' on a commit if they're selected for the commit. So
> there's no difference when the commit happens.

Because he wants to avoid committing files which have been deleted
accidentally by something else? Only delete a file from SVN if it has
been SVN->deleted.

But, files which are missing are not selected for commit
automatically. You have to check the box yourself, so unless you click
on select-all, that will not happen by mistake.

Simon

-- 
:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2489964
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-04-05 22:04:03 CEST

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

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