public HgCommit(HgNodeID firstParentNodeID, HgNodeID secondParentNodeID, HgAuthor committedBy, DateTimeOffset committedAt, HgBranch branch, string comment, params HgCommitFileEntry[] files) : base(firstParentNodeID, secondParentNodeID) { CommittedBy = committedBy; CommittedAt = committedAt; Branch = branch; Comment = comment; Files = new ReadOnlyCollection<HgCommitFileEntry>(new List<HgCommitFileEntry>(files)); }
public HgChangeset(HgRevlogEntryMetadata metadata, HgNodeID manifestNodeID, HgAuthor committedBy, DateTimeOffset committedAt, HgBranch branch, HgNodeID sourceNodeID, IEnumerable<string> files, string comment) { Metadata = metadata; ManifestNodeID = manifestNodeID; CommittedBy = committedBy; CommittedAt = committedAt; Branch = branch; SourceNodeID = sourceNodeID; Files = new ReadOnlyCollection<string>(new List<string>(files)); Comment = comment; }