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

Getting file content in pre-commit

From: James CE Johnson <jcej_at_tragus.org>
Date: Fri, 16 May 2008 14:20:47 -0400 (EDT)

Hi,

I have a need to capture the content of files being committed. Not to
change them but to analyze for one thing or another. For instance, we
might fail the commit if a file is too big or fails formatting rules (e.g.
-- source code) or for some other metric.

I've tried "svnlook cat ..." but since the file hasn't been committed yet
that doesn't show me the content of new files or the updated content of
changed files. I thought I might use a combination of cat/diff to create a
patch but that won't help me with binary files (so, failing large-file
commits).

Ideas?

Thanks,
James

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-16 20:10:29 CEST

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.