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

checking certain files before commit with an external utiltiy (newbie)

From: Chris Chiasson <chris_at_chiasson.name>
Date: 2006-07-27 06:35:05 CEST

Hi,

I am new to Subversion and to version control in general. Please don't
hurt me :-)

Question:
Is there something for Subversion that can check all files of a
particular type by calling an executable on them before allowing the
commit?

Background:

Mathematica notebooks have cached data that drastically changes even
if the actual edits to the code are small. A utility exists to strip
this cache. Another utility exists to detect the presence of cached
data in a notebook:

http://www.itwm.fhg.de/as/asemployees/wichmann/rmnbcache.html
http://www.itwm.fhg.de/as/asemployees/wichmann/testnbcache.html

I have searched your mailing list read and about half of the book
_Version Control with Subversion_ to determine if there is an easy way
to use this testnbcache utility to deny then commit if any of the
notebooks have cache data. The mailing list search was ineffective,
probably because the keywords I tried are common on this list in
contexts other than the one I need.

From the book: Hooks do not appear to directly pass the names of the
committed files as arguments to the hook scripts, so I would need
another way to get the (space separated) list of committed files.

Some of the scripts in the subversion contrib directory (
http://subversion.tigris.org/tools_contrib.html ) appear to allow
customizable checks on the committed files, but only if the checking
functions are written in Python (with which I am unfamiliar).

So, is there something for Subversion that can check all files of a
particular type by calling an executable on them before allowing the
commit?

-- 
http://chris.chiasson.name/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 27 06:36:19 2006

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.