SyncSVN
Public Member Functions | Static Public Member Functions | Properties | List of all members
RepositoryLib.SVNFileRepository Class Reference

Public Member Functions

 SVNFileRepository (SVNFileRepositoryConfig config)
 Init repository classx More...
 
bool ContainsSubPath (string pathToFile, string subPath)
 Check if path contain subpath More...
 
void Checkout ()
 Checkout last revision of remote repository
 
string Download (string id, Func< List< string >, List< bool > > onConflict=null)
 Download file from repository If onConflict is null all local changes will be overwriten by remote changes If onConflict is set then all entries marked as true will not be overwriten More...
 
SvnClient InitSvnClient ()
 Initialize svn client More...
 
void Delete (string path, Func< List< string >, List< bool > > onConflict=null)
 Delete file entry from repository More...
 
string Upload (string filePath, Func< List< string >, List< bool > > onConflict=null)
 Upload file to svn server More...
 
void Pull (Func< List< string >, List< bool > > onConflict=null)
 Pull changes from svn server. If onConflict is null all local changes will be overwriten by remote changes If onConflict is set then all entries which marked as true will not be overwriten by remote changes.
 
void Push (Func< List< string >, List< bool > > onConflict=null)
 Push changes to svn repository. If conflicts occurs onConflict will be called. All local entities marked as true will overwrite remote entities. More...
 
bool underSvnControl (string filePath)
 Check if file is under svn More...
 
void Dispose ()
 

Static Public Member Functions

static string GenerateFilename (string path)
 

Properties

SVNFileRepositoryConfig Config [get]
 

Constructor & Destructor Documentation

◆ SVNFileRepository()

RepositoryLib.SVNFileRepository.SVNFileRepository ( SVNFileRepositoryConfig  config)

Init repository classx

Parameters
config

Member Function Documentation

◆ ContainsSubPath()

bool RepositoryLib.SVNFileRepository.ContainsSubPath ( string  pathToFile,
string  subPath 
)

Check if path contain subpath

Parameters
pathToFile
subPath
Returns

◆ Delete()

void RepositoryLib.SVNFileRepository.Delete ( string  path,
Func< List< string >, List< bool > >  onConflict = null 
)

Delete file entry from repository

Parameters
path

◆ Download()

string RepositoryLib.SVNFileRepository.Download ( string  id,
Func< List< string >, List< bool > >  onConflict = null 
)

Download file from repository If onConflict is null all local changes will be overwriten by remote changes If onConflict is set then all entries marked as true will not be overwriten

Parameters
id
onConflict
Returns

◆ GenerateFilename()

static string RepositoryLib.SVNFileRepository.GenerateFilename ( string  path)
static

Parameters
path
Returns

◆ InitSvnClient()

SvnClient RepositoryLib.SVNFileRepository.InitSvnClient ( )

Initialize svn client

Returns

◆ Push()

void RepositoryLib.SVNFileRepository.Push ( Func< List< string >, List< bool > >  onConflict = null)

Push changes to svn repository. If conflicts occurs onConflict will be called. All local entities marked as true will overwrite remote entities.

Parameters
onConflict

◆ underSvnControl()

bool RepositoryLib.SVNFileRepository.underSvnControl ( string  filePath)

Check if file is under svn

Parameters
filePath
Returns

◆ Upload()

string RepositoryLib.SVNFileRepository.Upload ( string  filePath,
Func< List< string >, List< bool > >  onConflict = null 
)

Upload file to svn server

Parameters
path
Returns

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