VSS record representing a reverse-delta for a file revision.
Inheritance: VssRecord
Exemplo n.º 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;
 }
Exemplo n.º 2
0
 public DeltaRecord GetPreviousDelta(EditRevisionRecord revision)
 {
     if (revision.PrevDeltaOffset > 0)
     {
         var record = new DeltaRecord();
         ReadRecord(record, revision.PrevDeltaOffset);
         return record;
     }
     return null;
 }