SharpCvsLib

Entry.CreateEntry Method 

Creates a new entry given the path to the file on the filesystem. The entry string is fabricated based on the full path of the file that is under or is to be placed under CVS management control.

[Visual Basic]
Public Shared Function CreateEntry( _
   ByVal fullPath As String _
) As Entry
[C#]
public static Entry CreateEntry(
   string fullPath
);

Parameters

fullPath
The path to the file to put under cvs control.

Return Value

A new cvs entry, using the full path to the file for the entry information.

Exceptions

Exception TypeCondition
EntryParseExceptionIf the entry file cannot be parsed. This can occur if the fullPath contains a CVS management folder.

Example

A full path such as:

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\sharpcvslib-tests\sharpcvslib-test-repository\someFile.txt
would create a Entries line like:
/someText.txt////
Although the storage of the file is not the responsibility of the Entry class, the file would be stored in the directory:
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\sharpcvslib-tests\sharpcvslib-test-repository\

A directory entry would be indicated by a

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\sharpcvslib-tests\sharpcvslib-test-repository\src\
which is flagged by adding a
Path.DirectorySeperatorChar
to the end of a normal directory, if it does not already exist. The directory Entry would be placed in the CVS management folder ABOVE the directory itself and the resulting Entries line would look like:
D/src////
The file would then be placed by the Manager in the directory:
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\sharpcvslib-tests\sharpcvslib-test-repository\
as well.

See Also

Entry Class | ICSharpCode.SharpCvsLib.FileSystem Namespace