VSS record representing a comment message.
Inheritance: VssRecord
示例#1
0
        private static VssRecord CreateRecord(
            RecordHeader recordHeader, BufferReader recordReader)
        {
            VssRecord record = null;

            switch (recordHeader.Signature)
            {
            case RevisionRecord.SIGNATURE:
                record = CreateRevisionRecord(recordHeader, recordReader);
                break;

            case CommentRecord.SIGNATURE:
                record = new CommentRecord();
                break;

            case CheckoutRecord.SIGNATURE:
                record = new CheckoutRecord();
                break;

            case ProjectRecord.SIGNATURE:
                record = new ProjectRecord();
                break;

            case BranchRecord.SIGNATURE:
                record = new BranchRecord();
                break;

            case DeltaRecord.SIGNATURE:
                record = new DeltaRecord();
                break;
            }
            return(record);
        }
示例#2
0
 internal VssRevision(VssItem item, RevisionRecord revision, CommentRecord comment)
 {
     this.item = item;
     this.action = CreateAction(revision, item);
     this.revision = revision;
     this.comment = comment;
 }
示例#3
0
 protected override VssRevision CreateRevision(RevisionRecord revision, CommentRecord comment)
 {
     return new VssFileRevision(this, revision, comment);
 }
示例#4
0
 internal VssProjectRevision(VssItem item, RevisionRecord revision, CommentRecord comment)
     : base(item, revision, comment)
 {
 }
示例#5
0
 private static VssRecord CreateRecord(
     RecordHeader recordHeader, BufferReader recordReader)
 {
     VssRecord record = null;
     switch (recordHeader.Signature)
     {
         case RevisionRecord.SIGNATURE:
             record = CreateRevisionRecord(recordHeader, recordReader);
             break;
         case CommentRecord.SIGNATURE:
             record = new CommentRecord();
             break;
         case CheckoutRecord.SIGNATURE:
             record = new CheckoutRecord();
             break;
         case ProjectRecord.SIGNATURE:
             record = new ProjectRecord();
             break;
         case BranchRecord.SIGNATURE:
             record = new BranchRecord();
             break;
         case DeltaRecord.SIGNATURE:
             record = new DeltaRecord();
             break;
     }
     return record;
 }