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

Re: Limit The size of Commit in SVN

From: Stephen Connolly <stephen.alan.connolly_at_gmail.com>
Date: Tue, 4 Feb 2014 12:25:24 +0000

Nope I cannot. I don't use windows, and I only use SVN for those projects I
work on that are still on SVN.

I think you are missing the point that *everyone* has been trying to get
you to see...

What is the benefit in stopping 1GB+ commits?

Either the developer is going to split the commit into two 0.9GB revisions
and commit the 1.8GB anyway... so not stopping the repository from becoming
bloated... or the developer will keep those files out of source control...
so defeating the whole point of source control.

I contend that the real issue here is that you don't want developers
committing large binary files. In which case the commit hook should look
for large binary files and reject commits including them.

If you are concerned with server load, a commit hook is too late... the
file has already landed on the server when the server side hooks are
running.

If you are concerned with large binary files in SVN, a different commit
hook is what you want, i.e. one that stops the large binary files... not
one that prevents what may be a legitimate commit.

Consider the case where there are video prompts associated with text
messages in a repository. When committing a change to the text messages,
you should also commit the updated prompts (because it is a change that
should be part of the commit... having an incorrect video prompt for the
text message is a bug).

If I have to rework 20 of the messages as a result of a single refactoring
(introducing another screen, so all the messages now have to have "or via
the foo screen" appended... which requires a re-recording of all affected
messages by the talent), that could well mean committing the code for the
addition of the "foo" screen, with the message text changes and the updated
video files.

Putting a 1GB limit per revision will prevent me committing the change as a
single commit (which one can argue is the correct thing to do for this
single change).

TL;DR it sounds very much like you are solving the "wrong" problem... ask
yourself what is the real problem you want to solve and then solve that
problem instead.

On 4 February 2014 12:03, Mehboob Ahmed <m.mehboobahmed_at_gmail.com> wrote:

> hi Stephen
>
> i've shared the incmplete hook. if the commit size is larger than one gb
> than commit should cancel and prop up the echo msg... and let user commit
> less than 1GB data. can u provide me hook for windows for Tortoise SVN
>
>
>
> --
> View this message in context:
> http://subversion.1072662.n5.nabble.com/Limit-The-size-of-Commit-in-SVN-tp186696p186905.html
> Sent from the Subversion Users mailing list archive at Nabble.com.
>
Received on 2014-02-04 13:26:00 CET

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.