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

Re: Getting File sizes in Commit Hook

From: <kfogel_at_collab.net>
Date: 2005-01-20 16:47:30 CET

David Simpson <hdj80r@gmail.com> writes:
> Can I get the size of the files from within the Commit hook? I want
> to stop large files from being accidentally committed to the
> repository.

Unfortunately, 'svnlook' doesn't retrieve this information in
convenient form. Your best bet is to write a program using the
language bindings (i.e., in Python, Perl, or Java). A non-elegant
workaround would be to use 'svnlook cat' to put the file's contents
into a tmp file outside the repository, then examine the tmp file's


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 20 17:01:12 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.