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

Enforcing date relationship between files in pre-commit hook

From: Reid Priedhorsky <reid_at_umn.edu>
Date: 2006-09-07 19:28:07 CEST

Hi folks,

I'm storing TeX documents in my Subversion repository, and I also store
the corresponding PDFs, because some people who use the repository don't
have the tools to generate them.

However, I occasionally leave the PDF out of date in a commit.

Therefore, I would like to write a pre-commit hook that prevents me from
doing this. The rule would be, if a .tex file is being committed, and a
corresponding .pdf file is also being committed, and the .tex is newer
than the .pdf, reject the commit.

However, I can't figure out how to look at the last-modified timestamps
of the files being committed.

Any ideas?

Thanks very much for any help.

Reid

p.s. If convenient, please CC me on replies, as I'm not subscribed to
the list.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 7 19:53:43 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.