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.
A new cvs entry, using the full path to the file for the entry information.
Exception Type | Condition |
---|---|
EntryParseException | If the entry file cannot be parsed. This can occur if the fullPath contains a CVS management folder. |
A full path such as:
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\sharpcvslib-tests\sharpcvslib-test-repository\someFile.txtwould 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.DirectorySeperatorCharto 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.
Entry Class | ICSharpCode.SharpCvsLib.FileSystem Namespace