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

Re: pre-commit: How can I do some checks on a file befor finishing the transaction?

From: Max Bowsher <maxb_at_ukf.net>
Date: 2005-01-10 16:31:49 CET

Volker Füßler wrote:
> Hi,
>
> how can I do some checks on a file before it is stored or updated in a
> new revision?
>
> Actually, I have a script which checks if a file contains tabs. If this
> is the case, then it should not be possible finish the transaction.
> I know that I have to do this with an hook (pre-commit) but there I have
> only the transaction ID and repository name and I don't know how to
> access the content of the file to commit...
>
> Can anybody explain the best way to do this?

svnlook.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 10 16:36:09 2005

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.