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

Re: Force commit of unchanged file

From: Phil Cairns <phil.cairns_at_gmail.com>
Date: 2006-06-20 22:36:24 CEST

Slarge wrote:
> On Tue Jun 20 11:13 , Phil Cairns <phil.cairns@gmail.com> sent:
>> Peter McNab wrote:
>>> Phil Cairns wrote:
>> Then in my about box cpp file, I #included svnrevision.h, and displayed
>> the string. This all works, but it has the same problems as my
>> buildno.exe. That is, the file is going to be updated every time I do a
>> build. More to the point, the file's timestamp is going to be updated,
>> and the IDE is going to want to rebuild all files dependent on this one.
>
> No, not after the first time. SubWCRev creates the file as a temp file and
> compares it to the existing one (if present). If they are identical (should be
> the case if there are no local changes), the temp file is silently discarded so
> as not to change timestamps unnecessarily.

Fantastic ... I didn't check this, but that's great! Now that I've
verified it, it's even better :)

>> I'm looking for this file to be updated whenever I do a commit for that
>> directory. I guess I'm looking for a post-commit event. Is there a way
>> to hook into that? I'm quite prepared to write code if necessary, but
>> don't want to reproduce it if someone has already done it.
>
> Client-side hooks are in our issue tracker, but not high priority at the moment.
> But you should just be able to add it as a pre-build step anyway. The only gotcha
> is that you have to remember to rebuild after a commit. I generally use the
> $WCMODS keyword to add a suffix like "-dev" to the version string if there are
> local uncommitted mods.

Thanks Simon ... problem solved.

Phil.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Tue Jun 20 22:36:57 2006

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