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

Re: Newbie /etc/subversion question

From: Max Bowsher <maxb_at_ukf.net>
Date: 2005-04-15 19:49:36 CEST

Weintraub, David wrote:
>> = David Weintraub
> @ = Max Bowsher

>> Others would require some way for the server
>> to examine the version of the file that is sitting on the client's
>> machine
>> without that version of the file being added to the source archive.
>
> @ Already possible during pre-commit hook. The proposed commit has been
> placed
> @ in full as a transaction in the repository, and the pre-commit hook can
> @ examine it.
> @ "svnlook cat -t $TXN ..."
>
> Can the pre-commit hook (via the svnlook command) examine the source code?
> We had a policy that all non-binary files must have a particular copyright
> meessage in them. How could Subversion do that?

pre-commit hook. Using svnlook, or perl/python bindings, or custom C hook
program.
As I said above.

...
> Nope, I'd rather have the server run the hook scripts. As far as I am
> concerned Subversion does it the right way. Of course, that means you
> can't
> examine the file before it gets checked-in. At least not the way the
> client
> and server now communicate with each other.

Yes you can.
As I said above.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Apr 15 19:51:45 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.