From 6cc75b86a98a5e325647bb87b5c977cd41dbc99d Mon Sep 17 00:00:00 2001 From: stevenknight Date: Sun, 5 Mar 2006 01:58:57 +0000 Subject: [PATCH] Remove unnecessary creation of RCS and SCCS Node.Dir nodes. git-svn-id: http://scons.tigris.org/svn/scons/trunk@1433 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/Node/FS.py | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/engine/SCons/Node/FS.py b/src/engine/SCons/Node/FS.py index 36d84dbd..c0a6186d 100644 --- a/src/engine/SCons/Node/FS.py +++ b/src/engine/SCons/Node/FS.py @@ -335,8 +335,14 @@ def do_diskcheck_rcs(node, name): try: rcs_dir = node.rcs_dir except AttributeError: - rcs_dir = node.rcs_dir = node.Dir('RCS') - return rcs_dir.entry_exists_on_disk(name+',v') + if node.entry_exists_on_disk('RCS'): + rcs_dir = node.Dir('RCS') + else: + rcs_dir = None + node.rcs_dir = rcs_dir + if rcs_dir: + return rcs_dir.entry_exists_on_disk(name+',v') + return None def ignore_diskcheck_rcs(node, name): return None @@ -345,8 +351,14 @@ def do_diskcheck_sccs(node, name): try: sccs_dir = node.sccs_dir except AttributeError: - sccs_dir = node.sccs_dir = node.Dir('SCCS') - return sccs_dir.entry_exists_on_disk('s.'+name) + if node.entry_exists_on_disk('SCCS'): + sccs_dir = node.Dir('SCCS') + else: + sccs_dir = None + node.sccs_dir = sccs_dir + if sccs_dir: + return sccs_dir.entry_exists_on_disk('s.'+name) + return None def ignore_diskcheck_sccs(node, name): return None -- 2.26.2