SharpCvsLib

Factory.CreateCvsObject Method (String, String, String)

Create a cvs management object for the given path. The path specified should be the folder above the cvs directory. The name of the file and full path is then derived from the cvs line in the case of an Entries line, or in the case of a single line cvs management file (i.e. Root, Repository, etc.) the object being managed is the entire directory.

[Visual Basic]
Overloads Public Function CreateCvsObject( _
   ByVal path As String, _
   ByVal fileName As String, _
   ByVal line As String _
) As ICvsFile
[C#]
public ICvsFile CreateCvsObject(
   string path,
   string fileName,
   string line
);

Parameters

path
The path to the folder above the cvs directory.
fileName
The name of the cvs file that is being modified/ created.
line
The line to add to the file.

Return Value

A new cvs file that contains properties for the different elements in the line.

Exceptions

Exception TypeCondition
UnsupportedFileTypeExceptionIf the cvs filetype specified is unknown.

Example

The following will produce an entries file (directory seperator character may be different): path = c:/dev/sharpcvslib fileName = Entries line = /SharpCvsLib.build/1.1/// With the following information: FileContents = /SharpCvsLib.build/1.1/// FileName = Entries FullPath = c:/dev/sharpcvslib/SharpCvsLib.build IsMultiLined = true Path = c:/dev/sharpcvslib/ NOTE:

See Also

Factory Class | ICSharpCode.SharpCvsLib.FileSystem Namespace | Factory.CreateCvsObject Overload List