[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: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-06-20 17:07:34 CEST

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 :)


In the meantime: use the -d switch which prevents SubWCRev from
recreating the file if it already exists. Then, in your VS project
settings (configuration properties, general, Extensions to Delete on
Clean) add the file generated by SubWCRev. That way, when you do a
rebuild, the file gets removed by the 'clean' step, then your prebuild
event will recreate that file again.


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Tue Jun 20 17:26:23 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.