Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-01-2016, 06:53 AM
dhollman dhollman is online now
Registered User
 
Join Date: 09-26-2013
Posts: 9
Unreliable file modification timestamps from source control

We do VB6 builds using VBP.

They are setup using a VBG file to organize all the projects with interdependencies, and we rely on VBP to work out what needs to be rebuilt.

The problem I'm having is that since we use Mercurial (Git would be the same I think) the file timestamps are not a reliable way to check what needs to be rebuilt. Mercurial sets them to the last "get latest" time, nothing to do with changes to the files.

Are there any strategies to deal with this in VBP? It is possible to script an update to all files which looks in the repository history for their last change and updates their timestamps, but this is very slow to run.

Thanks
Reply With Quote
  #2  
Old 09-01-2016, 07:15 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Many source control systems have an option to set the local file timestamp to the last modification or checkin time of the file into the repository when getting from the repository. Barring that, you may need to set them yourself or modify your build process to not rely on them (perhaps delete all output files before building).
Reply With Quote
  #3  
Old 09-05-2016, 06:55 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
This may be another possibility: http://stackoverflow.com/a/8160957/156738
Reply With Quote
Reply

Tags
mercurial , timestamp , vb6


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 05:51 PM.


Copyright © 1999-2023 Kinook Software, Inc.