From b13df78c3cd6eff4e3eea87413013a251014b65e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Wed, 25 Jul 2012 07:01:43 +0000 Subject: [PATCH] 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. [SVN r79735] --- v2/test/svn_tree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/test/svn_tree.py b/v2/test/svn_tree.py index 74bceb7f5..9c67fa965 100644 --- a/v2/test/svn_tree.py +++ b/v2/test/svn_tree.py @@ -357,7 +357,7 @@ def handle_dir(path, current_parent, load_props, ignore_svn): 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 @@ def handle_dir(path, current_parent, load_props, ignore_svn): 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):