Kinook Software Forums

Kinook Software Forums (http://www.kinook.com/Forum/index.php)
-   [VBP] Third Party Tools (http://www.kinook.com/Forum/forumdisplay.php?f=3)
-   -   Unreliable file modification timestamps from source control (http://www.kinook.com/Forum/showthread.php?t=5444)

dhollman 09-01-2016 07:53 AM

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

kinook 09-01-2016 08:15 AM

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

kinook 09-05-2016 07:55 AM

This may be another possibility: http://stackoverflow.com/a/8160957/156738


All times are GMT -5. The time now is 03:21 AM.


Copyright 1999-2019 Kinook Software, Inc.