/* Copyright © 2006, FSL Technologies Ltd. $Revision: 6 $ $Date: 5/08/06 11:51 $ */ #ifndef UTIL_HPP #define UTIL_HPP #pragma once #define UTIL_HPP_ARCHIVE L"$Archive: /FOST.3/vss2svn/util.hpp $" #define UTIL_HPP_REVISION L"$Revision: 6 $" #define UTIL_HPP_DATE L"$Date: 5/08/06 11:51 $" namespace Migrate { using namespace FSLib; const extern Setting c_iniFile; const extern Setting c_banner; const extern Setting c_settings; const extern Setting c_environment; const extern Setting c_temp; const extern Setting c_directory; const extern Setting c_root; const extern Setting c_user; const extern Setting c_password; const extern Setting c_ss; const extern Setting c_log_createprocess; const extern Setting c_use_hooks_to_replicate_dates; wstring vss_timestamp( const TimeStamp &ts ); wstring safepath( const wstring &directory ); wstring path( const wstring &pathname ); wstring filename( const wstring &pathname ); wstring nextlevel( const wstring &pathname ); wstring otherlevels( const wstring &pathname ); wstring makepathname( const wstring &path, const wstring &filename ); wstring svnpathname( const wstring &pathname ); wstring dospath( const wstring &path ); bool is_subpath( const wstring &path, const wstring &path2 ); // Return the content of the tempfile as a list of strings - one for each line std::list< wstring > tempfile(); std::list< wstring > tempfile( const wstring &name, bool remove = true ); void execute( const wstring& cmd ); void execute_cmd( const wstring& cmd ); std::list< wstring > execute_ss( const wstring& cmd ); std::list< wstring > execute_ss( const wstring& cmd, const wstring &cachelocation ); void execute_svn( wstring command, bool credentials, const Nullable< wstring > &comment = Null,wstring sUser = L""); } #endif // UTIL_HPP /* $History: util.hpp $ * * ***************** Version 6 ***************** * User: Kirit Date: 5/08/06 Time: 11:51 * Updated in $/FOST.3/vss2svn * Sorted out some encoding problems on the svn command client. * * ***************** Version 5 ***************** * User: Kirit Date: 3/08/06 Time: 16:16 * Updated in $/FOST.3/vss2svn * Some small improvements. Still got problem with some (but not all) * restored projects. * * ***************** Version 4 ***************** * User: Kirit Date: 3/08/06 Time: 13:16 * Updated in $/FOST.3/vss2svn * Now starting to migrate to SVN. * * ***************** Version 3 ***************** * User: Kirit Date: 28/07/06 Time: 17:38 * Updated in $/FOST.3/vss2svn * Replays directory commmands. * * ***************** Version 2 ***************** * User: Kirit Date: 27/07/06 Time: 12:53 * Updated in $/FOST.3/vss2svn * Version compiles. Can now start to restructure directory handling. * * ***************** Version 1 ***************** * User: Kirit Date: 27/07/06 Time: 12:31 * Created in $/FOST.3/vss2svn * New utility file. */