|
Boost-Commit : |
From: juergen.hunold_at_[hidden]
Date: 2008-07-19 05:58:11
Author: jhunold
Date: 2008-07-19 05:58:10 EDT (Sat, 19 Jul 2008)
New Revision: 47588
URL: http://svn.boost.org/trac/boost/changeset/47588
Log:
Fix regression introduced by r47181:
- rename leaf() -> filename
- rename replace_leaf -> replace_filename
Text files modified:
trunk/tools/regression/src/compiler_status.cpp | 28 ++++++++++++++--------------
trunk/tools/regression/src/library_status.cpp | 10 +++++-----
2 files changed, 19 insertions(+), 19 deletions(-)
Modified: trunk/tools/regression/src/compiler_status.cpp
==============================================================================
--- trunk/tools/regression/src/compiler_status.cpp (original)
+++ trunk/tools/regression/src/compiler_status.cpp 2008-07-19 05:58:10 EDT (Sat, 19 Jul 2008)
@@ -194,11 +194,11 @@
if ( !fs::exists( dir_path ) ) return false;
for ( fs::directory_iterator itr( dir_path ); itr != end_itr; ++itr )
if ( fs::is_directory( *itr )
- && itr->leaf() != ignore_dir_named )
+ && itr->filename() != ignore_dir_named )
{
if ( find_file( *itr, name, path_found ) ) return true;
}
- else if ( itr->leaf() == name )
+ else if ( itr->filename() == name )
{
path_found = *itr;
return true;
@@ -284,16 +284,16 @@
// SunCC creates an internal subdirectory everywhere it writes
// object files. This confuses the target_directory() algorithm.
// This patch ignores the SunCC internal directory. Jens Maurer
- if ( (*itr).leaf() == "SunWS_cache" ) continue;
+ if ( (*itr).filename() == "SunWS_cache" ) continue;
// SGI does something similar for template instantiations. Jens Maurer
- if( (*itr).leaf() == "ii_files" ) continue;
+ if( (*itr).filename() == "ii_files" ) continue;
if ( child.empty() ) child = *itr;
else
{
std::cout << "Warning: only first of two target possibilities will be reported for: \n "
- << root.string() << ": " << child.leaf()
- << " and " << (*itr).leaf() << "\n";
+ << root.string() << ": " << child.filename()
+ << " and " << (*itr).filename() << "\n";
}
}
}
@@ -736,7 +736,7 @@
{
results.push_back( std::string() );
do_row( *itr,
- itr->leaf().substr( 0, itr->leaf().size()-5 ),
+ itr->filename().substr( 0, itr->filename().size()-5 ),
results[results.size()-1] );
}
}
@@ -752,15 +752,15 @@
for (; compiler_itr != end_itr; ++compiler_itr )
{
if ( fs::is_directory( *compiler_itr ) // check just to be sure
- && compiler_itr->leaf() != "test" ) // avoid strange directory (Jamfile bug?)
+ && compiler_itr->filename() != "test" ) // avoid strange directory (Jamfile bug?)
{
if ( specific_compiler.size() != 0
- && specific_compiler != compiler_itr->leaf() ) continue;
- toolsets.push_back( compiler_itr->leaf() );
- string desc( compiler_desc( compiler_itr->leaf() ) );
- string vers( version_desc( compiler_itr->leaf() ) );
+ && specific_compiler != compiler_itr->filename() ) continue;
+ toolsets.push_back( compiler_itr->filename() );
+ string desc( compiler_desc( compiler_itr->filename() ) );
+ string vers( version_desc( compiler_itr->filename() ) );
report << "<td>"
- << (desc.size() ? desc : compiler_itr->leaf())
+ << (desc.size() ? desc : compiler_itr->filename())
<< (vers.size() ? (string( "<br>" ) + vers ) : string( "" ))
<< "</td>\n";
error_count.push_back( 0 );
@@ -1010,7 +1010,7 @@
if ( argc == 4 )
{
fs::path links_path( argv[3], fs::native );
- links_name = links_path.leaf();
+ links_name = links_path.filename();
links_file.open( links_path );
if ( !links_file )
{
Modified: trunk/tools/regression/src/library_status.cpp
==============================================================================
--- trunk/tools/regression/src/library_status.cpp (original)
+++ trunk/tools/regression/src/library_status.cpp 2008-07-19 05:58:10 EDT (Sat, 19 Jul 2008)
@@ -130,7 +130,7 @@
if(fs::is_directory(*itr)){
std::pair<col_node::subcolumns_t::iterator, bool> result
= node.m_subcolumns.insert(
- std::make_pair(itr->leaf(), col_node())
+ std::make_pair(itr->filename(), col_node())
);
build_node_tree(*itr, result.first->second);
}
@@ -629,7 +629,7 @@
if(! fs::is_directory(*itr))
continue;
- string test_name = itr->leaf();
+ string test_name = itr->filename();
// strip off the ".test" is there is one
string::size_type s = test_name.find( ".test" );
if(string::npos != s)
@@ -728,7 +728,7 @@
throw std::string("binary path not found");
if(*leaf_itr != "libs")
--leaf_itr;
- test_lib_dir.remove_leaf();
+ test_lib_dir.remove_filename();
}
if(leaf_itr == fs::initial_path().end())
@@ -768,7 +768,7 @@
}
if(boost_root.empty())
throw std::string("boost root not found");
- boost_root.remove_leaf();
+ boost_root.remove_filename();
}
return boost_root;
@@ -888,7 +888,7 @@
if ( argc == 3 )
{
fs::path links_path( argv[2], fs::native );
- links_name = links_path.leaf();
+ links_name = links_path.filename();
links_file.open( links_path );
if ( !links_file )
{
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