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

Re: Changing files being committed

From: S3 <stein_at_duvel.ir.iit.edu>
Date: 2005-10-03 04:18:45 CEST

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

No, I want a server-side hook.
There is no enforcement if it is on the client-side.

It could go something like this:
Server gets diff
Server sends script the diff and the information
  to get the previous head revision from the repository.
Script executes
Server gets a new diff from the script
If it is blank it discards it (no changes)
If there is an error code then no commit happens

So, I could have the script apply the diff to the previous revision
and run it through Jalopy. Then it could re-diff it and subversion
could continue like normal.

Although I guess that a client hook would probably be simpler.
Also, such scripts would probably usually operate on more than
a diff so having subversion do the diffing might make sense.

Thanks for the information.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDQJUExzVgPqtIcfsRAqbuAJ9VIlbgDFZ85tdb4PukCOrRHVCTZwCeI+u3
lp+lpVf/0sIeRtM7/EtcOkY=
=lqFW
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 3 04:20:26 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.