SvnCpp
svn::Client Class Reference

#include <client.hpp>

Public Member Functions

 Client (Context *context=0)
 
virtual ~Client ()
 
const CommitInfocommitInfo () const
 
const ContextgetContext () const
 
ContextgetContext ()
 
void setContext (Context *context=NULL)
 
StatusEntries status (const char *path, const bool descend=false, const bool get_all=true, const bool update=false, const bool no_ignore=false, const bool ignore_externals=false)
 
svn_revnum_t status (const char *path, const StatusFilter &filter, const bool descend, const bool update, StatusEntries &entries)
 
svn_revnum_t checkout (const char *moduleName, const Path &destPath, const Revision &revision, svn_depth_t depth, bool ignore_externals=false, const Revision &peg_revision=Revision::UNSPECIFIED)
 
void relocate (const Path &path, const char *from_url, const char *to_url, bool recurse)
 
void remove (const Path &path, bool force)
 
void remove (const Targets &targets, bool force)
 
void lock (const Targets &targets, bool force, const char *comment)
 
void unlock (const Targets &targets, bool force)
 
void revert (const Targets &targets, bool recurse)
 
void add (const Path &path, bool recurse)
 
std::vector< svn_revnum_t > update (const Targets &targets, const Revision &revision, svn_depth_t depth, bool depth_is_sticky, bool ignore_externals)
 
svn_revnum_t update (const Path &path, const Revision &revision, svn_depth_t depth, bool depth_is_sticky, bool ignore_externals)
 
std::string cat (const Path &path, const Revision &revision, const Revision &peg_revision=Revision::UNSPECIFIED)
 
void get (Path &dstPath, const Path &path, const Revision &revision, const Revision &peg_revision=Revision::UNSPECIFIED)
 
AnnotatedFileannotate (const Path &path, const Revision &revisionStart, const Revision &revisionEnd)
 
svn_revnum_t commit (const Targets &targets, const char *message, bool recurse, bool keep_locks=false)
 
void copy (const Path &srcPath, const Revision &srcRevision, const Path &destPath)
 
void move (const Path &srcPath, const Revision &srcRevision, const Path &destPath, bool force)
 
void mkdir (const Path &path)
 
void mkdir (const Targets &targets)
 
void cleanup (const Path &path)
 
void cleanup (const Path &path, bool breakLocks, bool fixTimestamps, bool vacuumPristines, bool includeExternals)
 
void vacuum (const Path &path, bool removeUnversioned, bool removeIgnored, bool fixTimestamps, bool vacuumPristines, bool includeExternals)
 
void upgrade (const Path &path)
 
void resolved (const Path &path, bool recurse)
 
void doExport (const Path &from_path, const Path &to_path, const Revision &revision, bool overwrite=false, const Revision &peg_revision=Revision::UNSPECIFIED, bool ignore_externals=false, svn_depth_t depth=svn_depth_infinity, const char *native_eol=NULL)
 
svn_revnum_t doSwitch (const Path &path, const char *url, const Revision &revision, bool recurse)
 
void import (const Path &path, const char *url, const char *message, bool recurse)
 
void import (const Path &path, const Path &url, const char *message, bool recurse)
 
void merge (const Path &path1, const Revision &revision1, const Path &path2, const Revision &revision2, const Path &localPath, bool force, bool recurse, bool notice_ancestry=false, bool dry_run=false)
 
InfoVector info (const Path &pathOrUrl, bool recurse=false, const Revision &revision=Revision::UNSPECIFIED, const Revision &pegRevision=Revision::UNSPECIFIED)
 
const LogEntrieslog (const char *path, const Revision &revisionStart, const Revision &revisionEnd, bool discoverChangedPaths=false, bool strictNodeHistory=true)
 
const LogEntrieslog (const char *path, const Revision &revisionStart, const Revision &revisionEnd, const int limit, bool discoverChangedPaths=false, bool strictNodeHistory=true)
 
std::string diff (const Path &tmpPath, const Path &path, const Revision &revision1, const Revision &revision2, const bool recurse, const bool ignoreAncestry, const bool noDiffDeleted)
 
std::string diff (const Path &tmpPath, const Path &path1, const Path &path2, const Revision &revision1, const Revision &revision2, const bool recurse, const bool ignoreAncestry, const bool noDiffDeleted)
 
std::string diff (const Path &tmpPath, const Path &path, const Revision &pegRevision, const Revision &revision1, const Revision &revision2, const bool recurse, const bool ignoreAncestry, const bool noDiffDeleted)
 
DirEntries list (const char *pathOrUrl, svn_opt_revision_t *revision, bool recurse)
 
PathPropertiesMapList proplist (const Path &path, const Revision &revision, bool recurse=false)
 
PathPropertiesMapList propget (const char *propName, const Path &path, const Revision &revision, bool recurse=false)
 
void propset (const char *propName, const char *propValue, const Path &path, const Revision &revision, bool recurse=false, bool skip_checks=true)
 
void propdel (const char *propName, const Path &path, const Revision &revision, bool recurse=false)
 
std::pair< svn_revnum_t, PropertiesMaprevproplist (const Path &path, const Revision &revision)
 
std::pair< svn_revnum_t, std::string > revpropget (const char *propName, const Path &path, const Revision &revision)
 
svn_revnum_t revpropset (const char *propName, const char *propValue, const Path &path, const Revision &revision, bool force=false)
 
svn_revnum_t revpropdel (const char *propName, const Path &path, const Revision &revision, bool force=false)
 
void ignore (const Path &path)
 
void ignore (const Targets &targets)
 

Detailed Description

Subversion client API.

Constructor & Destructor Documentation

◆ Client()

svn::Client::Client ( Context * context = 0)

Initializes the primary memory pool.

◆ ~Client()

virtual svn::Client::~Client ( )
virtual

Member Function Documentation

◆ add()

void svn::Client::add ( const Path & path,
bool recurse )

Adds a file to the repository.

Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ annotate()

AnnotatedFile * svn::Client::annotate ( const Path & path,
const Revision & revisionStart,
const Revision & revisionEnd )

Retrieves the contents for a specific revision of a path

Parameters
pathpath of file or directory
revisionStartrevision to retrieve
revisionEndrevision to retrieve
Exceptions
ClientExceptionIf libsvn reports an error during the operation.
Returns
contents of the file

◆ cat()

std::string svn::Client::cat ( const Path & path,
const Revision & revision,
const Revision & peg_revision = Revision::UNSPECIFIED )

Retrieves the contents for a specific revision of a path

Parameters
pathpath of file or directory
revisionrevision to retrieve
peg_revisionpeg revision to retrieve, by default is the latest one
Exceptions
ClientExceptionIf libsvn reports an error during the operation.
Returns
contents of the file

◆ checkout()

svn_revnum_t svn::Client::checkout ( const char * moduleName,
const Path & destPath,
const Revision & revision,
svn_depth_t depth,
bool ignore_externals = false,
const Revision & peg_revision = Revision::UNSPECIFIED )

Executes a revision checkout.

Parameters
moduleNamename of the module to checkout.
destPathdestination directory for checkout.
revisionthe revision number to checkout. If the number is -1 then it will checkout the latest revision.
depththe checkout depth.
ignore_externalswhether you want get external resources too.
peg_revisionpeg revision to checkout, by default current.
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ cleanup() [1/2]

void svn::Client::cleanup ( const Path & path)

Recursively cleans up a local directory, finishing any incomplete operations, removing lockfiles, etc.

Parameters
patha local directory.
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ cleanup() [2/2]

void svn::Client::cleanup ( const Path & path,
bool breakLocks,
bool fixTimestamps,
bool vacuumPristines,
bool includeExternals )

Recursively cleans up a local directory, finishing any incomplete operations, removing lockfiles, etc. New method for Subversion 1.9 and higher.

Parameters
pathabsolute path a local directory.
breakLocksBreak existing working copy locks at or below the path
fixTimestampsFix recorded timestamps for unmodified files
vacuumPristinesRemove unreferenced files in the pristine store
includeExternalsRecurse into externals and clean them up as well
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ commit()

svn_revnum_t svn::Client::commit ( const Targets & targets,
const char * message,
bool recurse,
bool keep_locks = false )

Commits changes to the repository. This usually requires authentication, see Auth.

Since
0.14 see additional information about the commit in commitInfo
Returns
Returns a long representing the revision. It returns a -1 if the revision number is invalid.
Parameters
targetsfiles to commit.
messagelog message.
recursewhether the operation should be done recursively.
keep_lockswhether to preserve locks or to release them after commit
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ commitInfo()

const CommitInfo & svn::Client::commitInfo ( ) const
inline
Since
0.14

◆ copy()

void svn::Client::copy ( const Path & srcPath,
const Revision & srcRevision,
const Path & destPath )

Copies a versioned file with the history preserved.

Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ diff() [1/3]

std::string svn::Client::diff ( const Path & tmpPath,
const Path & path,
const Revision & pegRevision,
const Revision & revision1,
const Revision & revision2,
const bool recurse,
const bool ignoreAncestry,
const bool noDiffDeleted )

Produce diff output which describes the delta of path/pegRevision between revision1 and revision2. path can be either a working-copy path or a URL.

A ClientException will be thrown if either revision1 or revision2 has an ‘unspecified’ or unrecognized ‘kind’.

Parameters
tmpPathprefix for a temporary directory needed by diff. Filenames will have ".tmp" and similar added to this prefix in order to ensure uniqueness.
pathpath of the file.
pegRevisionthe peg revision to identify the path.
revision1one of the revisions to check.
revision2the other revision.
recursewhether the operation should be done recursively.
ignoreAncestrywhether the files will be checked for relatedness.
noDiffDeletedif true, no diff output will be generated on deleted files.
Returns
delta between the files
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ diff() [2/3]

std::string svn::Client::diff ( const Path & tmpPath,
const Path & path,
const Revision & revision1,
const Revision & revision2,
const bool recurse,
const bool ignoreAncestry,
const bool noDiffDeleted )

Produce diff output which describes the delta between path/revision1 and path/revision2. path can be either a working-copy path or a URL.

A ClientException will be thrown if either revision1 or revision2 has an ‘unspecified’ or unrecognized ‘kind’.

Parameters
tmpPathprefix for a temporary directory needed by diff. Filenames will have ".tmp" and similar added to this prefix in order to ensure uniqueness.
pathpath of the file.
revision1one of the revisions to check.
revision2the other revision.
recursewhether the operation should be done recursively.
ignoreAncestrywhether the files will be checked for relatedness.
noDiffDeletedif true, no diff output will be generated on deleted files.
Returns
delta between the files
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ diff() [3/3]

std::string svn::Client::diff ( const Path & tmpPath,
const Path & path1,
const Path & path2,
const Revision & revision1,
const Revision & revision2,
const bool recurse,
const bool ignoreAncestry,
const bool noDiffDeleted )

Produce diff output which describes the delta between path1/revision1 and path2/revision2. path1, path2 can be either a working-copy path or a URL.

A ClientException will be thrown if either revision1 or revision2 has an ‘unspecified’ or unrecognized ‘kind’.

Parameters
tmpPathprefix for a temporary directory needed by diff. Filenames will have ".tmp" and similar added to this prefix in order to ensure uniqueness.
path1path of the first file corresponding to revision1.
path2path of the first file corresponding to revision2.
revision1one of the revisions to check.
revision2the other revision.
recursewhether the operation should be done recursively.
ignoreAncestrywhether the files will be checked for relatedness.
noDiffDeletedif true, no diff output will be generated on deleted files.
Returns
delta between the files
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ doExport()

void svn::Client::doExport ( const Path & from_path,
const Path & to_path,
const Revision & revision,
bool overwrite = false,
const Revision & peg_revision = Revision::UNSPECIFIED,
bool ignore_externals = false,
svn_depth_t depth = svn_depth_infinity,
const char * native_eol = NULL )

Export into file or directory TO_PATH from local or remote FROM_PATH

Parameters
from_pathpath to import
to_pathwhere to import
revisionrevision of files in source repository or working copy
peg_revision
overwriteoverwrite existing files in to_path
ignore_externalswhether to ignore external sources in from_path
depthrecursion depth
native_eolwhich EOL to use when exporting, usually different for different OSs
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ doSwitch()

svn_revnum_t svn::Client::doSwitch ( const Path & path,
const char * url,
const Revision & revision,
bool recurse )

Update local copy to mirror a new url. This excapsulates the svn_client_switch() client method.

Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ get()

void svn::Client::get ( Path & dstPath,
const Path & path,
const Revision & revision,
const Revision & peg_revision = Revision::UNSPECIFIED )

Retrieves the contents for a specific revision of a path and saves it to the destination file dstPath.

If dstPath is empty (""), then this path will be constructed from the temporary directory on this system and the filename in path. dstPath will still have the file extension from path and uniqueness of the temporary filename will be ensured.

Parameters
dstPathFilename in which the contents of the file file will be safed.
pathpath or url
revision
peg_revisionpeg revision to retrieve, by default is the latest one
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ getContext() [1/2]

Context * svn::Client::getContext ( )
Returns
returns the Client context

◆ getContext() [2/2]

const Context * svn::Client::getContext ( ) const
Returns
returns the Client context

◆ ignore() [1/2]

void svn::Client::ignore ( const Path & path)

Add a single file into ignore list.

Parameters
pathpath to the file
Exceptions
ClientExceptionIf libsvn reports an error during the operation.
See also
svn:ignore property description

◆ ignore() [2/2]

void svn::Client::ignore ( const Targets & targets)

Add files into ignore list.

Parameters
targetstargets to treat as ignored
Exceptions
ClientExceptionIf libsvn reports an error during the operation.
See also
svn:ignore property description

◆ import() [1/2]

void svn::Client::import ( const Path & path,
const char * url,
const char * message,
bool recurse )

Import file or directory PATH into repository directory URL at head. This usually requires authentication, see Auth.

Parameters
pathpath to import
url
messagelog message.
recurse
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ import() [2/2]

void svn::Client::import ( const Path & path,
const Path & url,
const char * message,
bool recurse )

◆ info()

InfoVector svn::Client::info ( const Path & pathOrUrl,
bool recurse = false,
const Revision & revision = Revision::UNSPECIFIED,
const Revision & pegRevision = Revision::UNSPECIFIED )

retrieve information about the given path or URL

See also
Client::status
Info
Parameters
pathOrUrl
pegRevision
revision
recurse
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ list()

DirEntries svn::Client::list ( const char * pathOrUrl,
svn_opt_revision_t * revision,
bool recurse )

lists entries in pathOrUrl no matter whether local or repository

Parameters
pathOrUrl
revision
recurse
Returns
a vector of directory entries, each with a relative path (only filename)
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ lock()

void svn::Client::lock ( const Targets & targets,
bool force,
const char * comment )

Sets files to lock.

Parameters
targetstargets to lock
forceforce setting/stealing lock
commentwriting comment about lock setting is neccessary
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ log() [1/2]

const LogEntries * svn::Client::log ( const char * path,
const Revision & revisionStart,
const Revision & revisionEnd,
bool discoverChangedPaths = false,
bool strictNodeHistory = true )

Retrieve log information for the given path Loads the log messages result set. The first entry is the youngest revision.

You can use the constants Revision::START and Revision::HEAD

Parameters
path
revisionStart
revisionEnd
discoverChangedPaths
strictNodeHistory
Exceptions
ClientExceptionIf libsvn reports an error during the operation.
Returns
a vector with log entries

◆ log() [2/2]

const LogEntries * svn::Client::log ( const char * path,
const Revision & revisionStart,
const Revision & revisionEnd,
const int limit,
bool discoverChangedPaths = false,
bool strictNodeHistory = true )

Retrieve log information for the given path Loads the log messages result set. The first entry is the youngest revision. Can limit the number of log entries returned.

You can use the constants Revision::START and Revision::HEAD

Parameters
path
revisionStart
revisionEnd
limit
discoverChangedPaths
strictNodeHistory
Exceptions
ClientExceptionIf libsvn reports an error during the operation.
Returns
a vector with log entries

◆ merge()

void svn::Client::merge ( const Path & path1,
const Revision & revision1,
const Path & path2,
const Revision & revision2,
const Path & localPath,
bool force,
bool recurse,
bool notice_ancestry = false,
bool dry_run = false )

Merge changes from two paths into a new local path.

Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ mkdir() [1/2]

void svn::Client::mkdir ( const Path & path)

Creates a directory directly in a repository or creates a directory on disk and schedules it for addition. If path is a URL then authentication is usually required, see Auth.

Parameters
pathDirectory to create
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ mkdir() [2/2]

void svn::Client::mkdir ( const Targets & targets)

Creates one or several directories directly in a repository or creates one or several directories on disk and schedules them for addition. If path is a URL then authentication is usually required, see Auth.

Parameters
targetsDirectories to create
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ move()

void svn::Client::move ( const Path & srcPath,
const Revision & srcRevision,
const Path & destPath,
bool force )

Moves or renames a file.

Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ propdel()

void svn::Client::propdel ( const char * propName,
const Path & path,
const Revision & revision,
bool recurse = false )

delete property in path no matter whether local or repository

Parameters
propName
path
revision
recurse
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ propget()

PathPropertiesMapList svn::Client::propget ( const char * propName,
const Path & path,
const Revision & revision,
bool recurse = false )

lists one property in path no matter whether local or repository

Parameters
propName
path
revision
recurse
Exceptions
ClientExceptionIf libsvn reports an error during the operation.
Returns
PathPropertiesMapList

◆ proplist()

PathPropertiesMapList svn::Client::proplist ( const Path & path,
const Revision & revision,
bool recurse = false )

lists properties in path no matter whether local or repository

Parameters
path
revision
recurse
Exceptions
ClientExceptionIf libsvn reports an error during the operation.
Returns
PropertiesList

◆ propset()

void svn::Client::propset ( const char * propName,
const char * propValue,
const Path & path,
const Revision & revision,
bool recurse = false,
bool skip_checks = true )

This method is deprecated, please use Property.set set property in path no matter whether local or repository

Deprecated
Parameters
path
revision
propName
propValue
recurse
skip_checks
Exceptions
ClientExceptionIf libsvn reports an error during the operation.
Returns
PropertiesList

◆ relocate()

void svn::Client::relocate ( const Path & path,
const char * from_url,
const char * to_url,
bool recurse )

relocate wc from to to

Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ remove() [1/2]

void svn::Client::remove ( const Path & path,
bool force )

Sets a single file for deletion.

Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ remove() [2/2]

void svn::Client::remove ( const Targets & targets,
bool force )

Sets files for deletion.

Parameters
targetstargets to delete
forceforce if files are locally modified
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ resolved()

void svn::Client::resolved ( const Path & path,
bool recurse )

Removes the 'conflicted' state on a file.

Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ revert()

void svn::Client::revert ( const Targets & targets,
bool recurse )

Reverts a couple of files to a pristiner state.

Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ revpropdel()

svn_revnum_t svn::Client::revpropdel ( const char * propName,
const Path & path,
const Revision & revision,
bool force = false )

delete revision property in path no matter whether local or repository

Parameters
propName
path
revision
force
Exceptions
ClientExceptionIf libsvn reports an error during the operation.
Returns
Revision

◆ revpropget()

std::pair< svn_revnum_t, std::string > svn::Client::revpropget ( const char * propName,
const Path & path,
const Revision & revision )

lists one revision property in path no matter whether local or repository

Parameters
propName
path
revision
Exceptions
ClientExceptionIf libsvn reports an error during the operation.
Returns
PropertiesList

◆ revproplist()

std::pair< svn_revnum_t, PropertiesMap > svn::Client::revproplist ( const Path & path,
const Revision & revision )

lists revision properties in path no matter whether local or repository

Parameters
path
revision
Exceptions
ClientExceptionIf libsvn reports an error during the operation.
Returns
PropertiesList

◆ revpropset()

svn_revnum_t svn::Client::revpropset ( const char * propName,
const char * propValue,
const Path & path,
const Revision & revision,
bool force = false )

set revision property in path no matter whether local or repository

Parameters
propName
propValue
path
revision
force
Exceptions
ClientExceptionIf libsvn reports an error during the operation.
Returns
Revision

◆ setContext()

void svn::Client::setContext ( Context * context = NULL)

sets the client context you have to make sure the old context is de-allocated

Parameters
contextnew context to use

◆ status() [1/2]

StatusEntries svn::Client::status ( const char * path,
const bool descend = false,
const bool get_all = true,
const bool update = false,
const bool no_ignore = false,
const bool ignore_externals = false )

Enumerates all files/dirs at a given path.

Throws an exception if an error occurs

Parameters
pathPath to explore.
descendRecurse into subdirectories if existant.
get_allReturn all entries, not just the interesting ones.
updateQuery the repository for updates.
no_ignoreDisregard default and svn:ignore property ignores.
ignore_externalsDisregard external files.
Exceptions
ClientExceptionIf libsvn reports an error during the operation.
Returns
vector with Status entries.

◆ status() [2/2]

svn_revnum_t svn::Client::status ( const char * path,
const StatusFilter & filter,
const bool descend,
const bool update,
StatusEntries & entries )

Enumerates all files/dirs matchin the parameter filter at path and returns them in the vector statusEntries

Throws an exception if an error occurs

Since
New in 0.9.7
Parameters
pathPath to explore.
filteruse a combination of the SHOW_* values to filter the output
descendRecurse into subdirectories if existant.
updateQuery the repository for updates.
entriesvector with Status entries
Exceptions
ClientExceptionIf libsvn reports an error during the operation.
Returns
current revnum

◆ unlock()

void svn::Client::unlock ( const Targets & targets,
bool force )

Sets files to unlock.

Parameters
targetstargets to unlock
forceforce unlock even if lock belongs to another user
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ update() [1/2]

svn_revnum_t svn::Client::update ( const Path & path,
const Revision & revision,
svn_depth_t depth,
bool depth_is_sticky,
bool ignore_externals )

Updates the file or directory.

Parameters
pathThe single file or directory to update.
revisionthe revision number to checkout. Revision::HEAD will checkout the latest revision.
depththe update depth. The special value svn_depth_unknown fetches whatever was already there (the previous "sticky depth").
depth_is_stickyIf depth != svn_depth_unknown, makes the depth sticky (it will be saved permanently).
ignore_externalsdon't affect external destinations.
Exceptions
ClientExceptionIf libsvn reports an error during the operation.
Returns
The resulting (new) revision of the file or directory.

◆ update() [2/2]

std::vector< svn_revnum_t > svn::Client::update ( const Targets & targets,
const Revision & revision,
svn_depth_t depth,
bool depth_is_sticky,
bool ignore_externals )

Updates the files or directories.

Parameters
targetstarget files.
revisionthe revision number to checkout. Revision::HEAD will checkout the latest revision.
depththe update depth. The special value svn_depth_unknown fetches whatever was already there (the previous "sticky depth").
depth_is_stickyIf depth != svn_depth_unknown, makes the depth sticky (it will be saved permanently).
ignore_externalsdon't affect external destinations.
Exceptions
ClientExceptionIf libsvn reports an error during the operation.
Returns
a vector with resulting revisions

◆ upgrade()

void svn::Client::upgrade ( const Path & path)

Upgrades an entire working copy to the newest format supported by the used SVN library. It is necessary to upgrade working copies before performing any other operations on them, if they were checked out with an older SVN version.

Parameters
pathPath to the working copy root directory.
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

◆ vacuum()

void svn::Client::vacuum ( const Path & path,
bool removeUnversioned,
bool removeIgnored,
bool fixTimestamps,
bool vacuumPristines,
bool includeExternals )

Recursively removes unversioned and/or ignored files from a local directory. New method for Subversion 1.9 and higher.

Parameters
pathabsolute path a local directory.
removeUnversionedRemove all unversioned files.
removeIgnoredRemove all ignored files.
fixTimestampsFix recorded timestamps for unmodified files
vacuumPristinesRemove unreferenced files in the pristine store
includeExternalsRecurse into externals and clean them up as well
Exceptions
ClientExceptionIf libsvn reports an error during the operation.

The documentation for this class was generated from the following file: