Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79735 - trunk/tools/build/v2/test
From: jurko.gospodnetic_at_[hidden]
Date: 2012-07-25 03:01:43


Author: jurko
Date: 2012-07-25 03:01:43 EDT (Wed, 25 Jul 2012)
New Revision: 79735
URL: http://svn.boost.org/trac/boost/changeset/79735

Log:
Updated internal Boost Build's testing system code for collecting file modification timestamps information to do so with greater than 1 second precision (if the OS, file system and the used Python implementation support this). This allows for more precise/correct recognizing whether a file has been touched by a build run or not.
Text files modified:
   trunk/tools/build/v2/test/svn_tree.py | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/tools/build/v2/test/svn_tree.py
==============================================================================
--- trunk/tools/build/v2/test/svn_tree.py (original)
+++ trunk/tools/build/v2/test/svn_tree.py 2012-07-25 03:01:43 EDT (Wed, 25 Jul 2012)
@@ -357,7 +357,7 @@
       fprops = {}
     c = SVNTreeNode(os.path.basename(f), None,
                                          fcontents, fprops)
- c.mtime = os.stat(f)[stat.ST_MTIME]
+ c.mtime = os.stat(f).st_mtime
     current_parent.add_child(c)
 
   # for each subdir, create a node, walk its tree, add it as a child
@@ -368,7 +368,7 @@
       dprops = {}
     new_dir_node = SVNTreeNode(os.path.basename(d), [], None, dprops)
     handle_dir(d, new_dir_node, load_props, ignore_svn)
- new_dir_node.mtime = os.stat(f)[stat.ST_MTIME]
+ new_dir_node.mtime = os.stat(f).st_mtime
     current_parent.add_child(new_dir_node)
 
 def get_child(node, name):


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk