summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node
Commit message (Collapse)AuthorAgeFilesLines
...
* Misc Windows test cleanupsGary Oberbrunner2011-02-271-1/+1
|
* Fix last commit for python 2.3; no string.rsplit(). Use rindex instead.Gary Oberbrunner2010-11-212-2/+21
|
* Additional UNC path test case for FS.pyGary Oberbrunner2010-11-191-0/+11
|
* Fix for issue #1420, Windows UNC path handling. Applied patch from Benoit ↵Gary Oberbrunner2010-11-182-127/+494
| | | | Belley after updating it to fit into trunk, and added a couple of extra tests from issues 1420, 1857 and 1948.
* Fix issue with implicit-cache when files are removed on disk. Fixes issue ↵Gary Oberbrunner2010-08-121-3/+4
| | | | #1938.
* Fix issue 2048: when morphing an Entry into a Dir, retain any existing ↵Gary Oberbrunner2010-07-312-5/+20
| | | | executor action list.
* cleanup .cvsignore garbageAnatoly Techtonik2010-07-051-1/+0
|
* Fix "Ignoring corrupt sconsign entry" warnings when upgrading from 1.x.Steven Knight2010-05-261-2/+2
|
* Fix unit test ripple effect from converting SCons.Util.Proxy to a new-style ↵Steven Knight2010-05-191-2/+4
| | | | class.
* Convert Util.Proxy from an old-style class to a new-style class.Steven Knight2010-05-191-0/+3
|
* Eliminate custom use of old-style Proxy class in Node/FSTests.py.Steven Knight2010-05-171-8/+1
|
* Convert old-style classes in Node/FS.py to new-style classes. Refactor ↵Steven Knight2010-05-171-11/+9
| | | | assignment to FS.DiskChecker.__call__.
* Commit old-style classes in Node/__init__.py to new-style classes.Steven Knight2010-05-161-5/+5
| | | | | Fix a ripple-effect in Script/Main.py by using obj.__class__.__name_ to, uh, fetch the name of a class.
* Convert old-style classes to new-style classes.Steven Knight2010-05-121-10/+10
| | | | | | | Leave the Proxy class in Node/FSTests.py, which can't be converted until we convert Node/FS.py itself. Update the AttributeError matches to search for the new "'Foo' object..." error message in addition to the old "'Foo' instance..." message.
* Convert old-style utility classes in unit test files (*Tests.py)Steven Knight2010-05-123-16/+16
| | | | to new-style classes.
* Convert to Python 3.x division rules.Greg Noel2010-04-241-3/+4
|
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-244-126/+31
| | | | | | | 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-212-8/+6
| | | | Apply the 'itertools' and 'itertools_imports' fixers.
* Rewrite uses of reduce(), which is being deprecated for Python 3.x.Steven Knight2010-04-202-2/+8
|
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-152-3/+2
| | | | | | | | | 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-154-23/+23
| | | | | | 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).
* Add compat "collections" module for pre-2.4 Python verseions. For now.Steven Knight2010-04-111-0/+2
|
* Issue 2334: Use compatibility versions of collections.User{Dict,List,String}Steven Knight2010-04-074-9/+9
| | | | | instead of the deprecated User{Dict,List,String} modules. The two test scripts that use User{List,String} fall back on ImportError by hand.
* Issue 2332: Convert from using StringIO.StringIO class to using theSteven Knight2010-04-072-6/+7
| | | | | 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-293-22/+22
| | | | | | | 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-274-22/+11
| | | | | | | | | | | | | | | 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-258-135/+123
| | | | | 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-292-2/+10
| | | | 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
|
* Issue 2401: Fix usage of comparison with None, patch from Jared GrubbGreg Noel2009-05-035-18/+18
|
* Add .get_file_contents() to Value() nodesGreg Noel2009-04-221-1/+4
|
* 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-223-16/+27
| | | | | | 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-098-0/+47
|
* 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-094-7/+21
| | | | | | | | | | | | | | | | | | | | | | 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-302-1/+15
| | | | 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-122-10/+132
|
* 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-022-8/+31
| | | | | 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-082-5/+20
| | | | directory that begins with '#'.