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

Re: Empty commit

From: Thomas Harold <tgh_at_tgharold.com>
Date: 2007-06-21 06:31:01 CEST

Andy Levy wrote:
> On 6/13/07, Giulio Troccoli <Giulio.Troccoli@uk.linedata.com> wrote:
>> Is there a way to capture an empty commit?
>>
>> I would like to do something in case there is a commit with actually no
>> changes at all. I thought to check what is changed in the pre-commit
>> hook
>> using svnlook changed but it seems the pre-commit hook is not even
>> called. Maybe because the transaction is not created, since there are no
>> changes, and if that's the case it would make sense. However, is there a
>> way I can capture this event somehow?
>
> Unless I'm mistaken, the Subversion client doesn't allow an commit in
> the first place if there are no changes. Have you been able to
> successfully execute a commit (including bumping the repository
> version #) without actually making changes?

Is this a client limitation or a limitation of the repository (or server)?

I've been mucking about with using FSVS recently, which uses the SVN
libraries and stores things in a SVN repository. And looking through my
revision history, I've managed to create empty commits (no changes) with
their own log messages. At least, when using TSVN -> ViewLog it looks
like the revision is empty except for the message.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 21 06:31:34 2007

This is an archived mail posted to the Subversion Users mailing list.