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

Re: Feature request: warning on commit if a specified tag was found

From: Nathan Kidd <nathan-svn_at_spicycrypto.ca>
Date: 2005-10-18 17:01:45 CEST

Sergej Zagursky wrote:
> Sometimes programmers write test code into project. It'll be good if
> such a test code didn't leak to repository. My proposal is: programmers
> along with test code write some specific comment near test code. For
> example:
>
> //DO_NOT_COMMIT!
> if(a == 1) OutputDebugString("Hit!\n");
>
> TSVN can have an option to check some specific text in changed files in
> commit dialog to ensure that no test code leaks to repository.

This is the job of a server-side pre-commit hook, not the client. You
can scan the transaction for whatever strings you like and fail the
commit if it matches.

Sorry, I don't have any example scripts though.

-Nathan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org

--
Received on Tue Oct 18 16:10:10 2005

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