[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:39:13 CEST

Stefan Küng wrote:
> Phil Cairns wrote:
>> I liked the idea of SubWCRev.exe, and tried it. I created a
>> "svnrevision-template.h" file, with this as the contents:
>> const char* SVNREVISION = "(Rev. $WCREV$)";
>> In my prebuild event, I included this line (broken for readability):
>> "C:\Program Files\TortoiseSVN\bin\SubWCRev.exe" \
>> "$(InputDir)." \
>> "$(InputDir)..\common\svnrevision-template.h" \
>> "$(InputDir)..\common\svnrevision.h" -f
>> 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.
> So basically, you're asking that SubWCRev must not change the timestamp
> of that file if the revision (or any other information like $DATE$)
> hasn't changed.
> Looks like a feature request :)
> http://tortoisesvn.berlios.de/issues/?do=details&id=257

Yep, and as you've discovered, this has already been implemented. Thanks
to Slarge for pointing that out in the post below. Problem is solved :)

Thanks Stefan,

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:40:15 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.