summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/FS.py
Commit message (Collapse)AuthorAgeFilesLines
* - replaced wrong Node attribute with its new nameswitch_to_slotsDirk Baechle2015-03-281-1/+1
|
* - added backward compatibility layer for the Node attributes abspath, labspath,Dirk Baechle2015-03-281-53/+84
| | | | path, tpath and path_elements
* - switching Node class and NodeInfo/Binfo to using slotsDirk Baechle2015-02-261-194/+319
| | | | - memoizer subsystem now uses decorators instead of the metaclass approach
* - a few simple refactorings and optimizationsDirk Baechle2015-02-041-11/+1
|
* - added new method rentry_exists_on_disk (check for physical files/dirs)Dirk Baechle2014-11-051-0/+33
|
* Merge c3cba85 from Dirk Baechle, fix for spurious rebuilds. See b4bc497.Gary Oberbrunner2014-03-011-3/+6
|\
| * - fix for spurious rebuilds, allow caching of the changed() method's value ↵Dirk Baechle2014-02-141-3/+6
| | | | | | | | only when called from File.release_target_info()
* | - disabled reset of Node attributes in built() during interactive modeDirk Baechle2014-01-091-1/+2
|/
* Added release_target_info() to File nodes, reduces memory consumption.Dirk Baechle2013-12-191-9/+130
|
* - now counting instances only when requested via --debug=countDirk Baechle2013-10-251-5/+6
|
* From Bogdan Tenea: Check for 8.3 filenames on cygwin as well as win32 to ↵Gary Oberbrunner2013-09-301-1/+1
| | | | make variant_dir work properly.
* - added simple test for #2720 (execute with cached targets)Dirk Baechle2012-04-221-1/+1
| | | | | - fixed two typos - updated list of changes
* document FS.Base instance variablesAnatoly Techtonik2011-06-241-2/+6
|
* New debug option --debug=duplicate to debug Variant-dir duplicationGary Oberbrunner2011-03-011-0/+7
|
* Fix last commit for python 2.3; no string.rsplit(). Use rindex instead.Gary Oberbrunner2010-11-211-2/+12
|
* Fix for issue #1420, Windows UNC path handling. Applied patch from Benoit ↵Gary Oberbrunner2010-11-181-113/+237
| | | | Belley after updating it to fit into trunk, and added a couple of extra tests from issues 1420, 1857 and 1948.
* Fix issue 2048: when morphing an Entry into a Dir, retain any existing ↵Gary Oberbrunner2010-07-311-3/+18
| | | | executor action list.
* Convert Util.Proxy from an old-style class to a new-style class.Steven Knight2010-05-191-0/+3
|
* Convert old-style classes in Node/FS.py to new-style classes. Refactor ↵Steven Knight2010-05-171-11/+9
| | | | assignment to FS.DiskChecker.__call__.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-241-89/+20
| | | | | | | Comb out all code that supported earlier versions of Python. Most such code is in snippets of only a few lines and can be identified by having a Python version string in it. Such snippets add up; this combing pass probably got rid of over 500 lines of code.
* http://scons.tigris.org/issues/show_bug.cgi?id=2317Greg Noel2010-04-231-1/+1
| | | | | | Apply the refactorings from the 'dict' fixer, less occurrences that were manually audited to be safe. Also pick up changes in bin/sfsum, a Python file that was not being scanned before.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-211-4/+2
| | | | Apply the 'itertools' and 'itertools_imports' fixers.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-151-2/+1
| | | | | | | | | Fixes due to running the regression tests with the '-3' option to Python2.6, which causes the run-time to look for potential compatibility problems with Python 3.x. In some cases, all we can do is quiet the warning since we still support Python versions that can't use the newer idiom. In other cases, we fix the problem. This patch contains a mix of quieting and fixing, plus a little lint.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-151-12/+12
| | | | | | Apply the first part of the 'raise' fixer (the three-argument cases are not converted and will need to wait until native support of with_traceback() is available).
* Issue 2332: Convert from using StringIO.StringIO class to using theSteven Knight2010-04-071-2/+1
| | | | | forward-compatible io.StringIO class, with the addition of an "io" compatibility module for Python versions before 2.6.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-03-291-1/+1
| | | | | | | Accumulated small fixers: renames, next, zip, and intern. Files that were modified or added while developing on branches/pending didn't have the fixers previously applied. This patchset picks up those.
* http://scons.tigris.org/issues/show_bug.cgi?id=2329Greg Noel2010-03-271-7/+3
| | | | | | | | | | | | | | | Applied a number of idiomatic changes. Uses of the 'sort()' method were converted into calls of 'sorted()' when possible and the sorted() expression was inserted into a subsequent statement whenever that made sense. The statement 'while 1:' was changed to 'while True:'. Names from the 'types' module (e.g., 'types.FooType') were converted to the equivalent build-in type (e.g., 'foo'). Comparisons between types were changed to use 'isinstance()'.
* Move 2.0 changes collected in branches/pending back to trunk for furtherGreg Noel2010-03-251-35/+33
| | | | | development. Note that this set of changes is NOT backward-compatible; the trunk no longer works with Python 1.5.2, 2.0, or 2.1.
* Add a message to the UserError raised when trying to do a Dir lookup with ↵Gary Oberbrunner2009-12-201-1/+2
| | | | create=False. Should not normally happen, but it did to me, and it is better to have some explanatory message when it happens rather than failing silently.
* Fix issue #2419 by sorting the other return path from glob() in FS.py. ↵Gary Oberbrunner2009-05-291-1/+3
| | | | Thanks to Jin Liu for the original analysis of the problem.
* Issue 2415: Tolerate unicode strings when using intern()Ludwig Hähne2009-05-171-8/+8
|
* Fix handling of both UTF_16_LE and UTF_16_BE. Add an actual test forSteven Knight2009-03-021-7/+58
| | | | | scanning Unicode files for implicit dependencies. Clean up how we handle decoding, and wrap it for earlier Python versions.
* Move the set_state(EXECUTED) call associated with pulling thingsSteven Knight2009-02-221-16/+16
| | | | | | out of a CacheDir from CacheDir.py to Taskmaster.py. Ripple effects include adding a Node.FS.push_to_cache() method, so that logic can be invoked separately from the Node.built() method.
* Return the intern() string on the first call to Node.FS.Base._save_str().Steven Knight2009-02-191-2/+2
|
* Issue 2181: intern file-names to save memoryLudwig Hähne2009-02-091-9/+11
|
* Handle finding implicit dependents defined with doubled pathSteven Knight2009-02-091-2/+3
| | | | | separators, as can happen on Windows systems when the backslashes in the path name are escaped (e.g. "C:\\some\\include.h").
* Add emacs and vim editing settings to the bottom of *.py files.Steven Knight2009-02-091-0/+5
|
* 2to3 sez, "rewrite map() as loop"Greg Noel2009-02-081-1/+1
|
* Detect the presence of 8.3 names on Windows when looking on-diskSteven Knight2009-01-271-2/+12
| | | | for whethr an entry exists.
* Various Windows fixes:Steven Knight2009-01-181-3/+6
| | | | | | | | | | | * Restore correct code to detect a bad drive on Windows. * Update the bad drive error message to include the target name. * Update SConfTests.py to print the config.log on error. * Fix the smart_link() error message to not use repr() of a path so escaping the \ separators on Windows doesn't interfere with regex matchs. * Update regexes in test/VariantDir/reflect.py to accomodate command-line re-ordering to put the /OUT: first in the line. * Explicitly check for smart_link() messages even on Windows.
* Issue 1086: add support for generic batch build actions, andSteven Knight2009-01-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | specific support for batched compilation for Microsoft Visual C/C++. Merged revisions 3819-3851,3854-3869,3871-3877,3880 via svnmerge from http://scons.tigris.org/svn/scons/branches/sgk_batch ........ r3820 | stevenknight | 2008-12-09 23:59:14 -0800 (Tue, 09 Dec 2008) | 6 lines Issue 1086: Batch compilation support: * $MSVC_BATCH to control Visual C/C++ batch compilation. * New $CHANGED_SOURCES, $CHANGED_TARGETS, $UNCHANGED_SOURCES and $UNCHANGED_TARGETS construction variables. * New Action(batch_key=, targets=) keyword arguments. ........ r3880 | stevenknight | 2009-01-07 20:50:41 -0800 (Wed, 07 Jan 2009) | 3 lines Use UniqueList objects to collect the all_children(), all_prerequisites() and all_sources() lists instead of calling uniquer_hashables() by hand. ........
* Allow subclassing of File and Dir nodes by having the must_be_same()Steven Knight2008-12-301-1/+1
| | | | method check for isinstance(), not an exact class match.
* Issue 2276: Fix use of codecs module in pre-2.3 Python versions.Steven Knight2008-12-201-0/+13
|
* Issue 2255: Handle scanning of UTF-8 and UTF-16 files. (Greg Spencer)Steven Knight2008-12-121-10/+51
|
* Issue 1287: copy File attributes from the local Node to a RepositorySteven Knight2008-12-101-0/+13
| | | | | Node so we identify shared object files in a Repository and can link them into a local shared library. (Matthew Wesley)
* Fix a Glob() exception (with stack trace) when an explicit NodeSteven Knight2008-12-021-1/+5
| | | | | exists in a repository directory without a corresponding on-disk file or directory.
* Speed up Node.FS.EntryProxy.__getattr__() by not spending cyclesSteven Knight2008-11-151-10/+22
| | | | | | | generating an AttributeError exception message that gets ignored most of the time. Instead, re-raise an AttributeError subclass that delays message generation until its __str__() method is actually called. (Brad Fitzpatrick)
* Fix an exception and stack trace when Glob() hits an on-disk file orSteven Knight2008-11-081-0/+3
| | | | directory that begins with '#'.
* Fix a nested-scope regression affecting Python 1.5, 2.0 and 2.1.Steven Knight2008-11-071-1/+2
|
* Issue 2242: Minor style and loop enhancementsGreg Noel2008-11-071-102/+92
|