Commit Graph

9 Commits

Author SHA1 Message Date
Aaron Son
c4b74b8878 store/datas: CommitOptions: Remove types references. 2022-03-10 13:52:08 -08:00
Aaron Son
9a136b0e20 go/store/datas: Delete merge policy support from Commit. 2022-02-02 10:29:57 -08:00
Aaron Son
84c3066348 go/**/*.go: Update copyright headers for company name change. 2020-11-02 10:17:02 -08:00
Daylon Wilkins
b5bb663233 Reference new org name and updated trigger logic 2020-09-25 15:35:04 -07:00
Aaron Son
4dff4f2201 go/store/datas: commit.go: Start storing commit parents as a List instead of a Set.
Commit parent order has meaning in our use case. The branch that gets merged
into is always the first commit in the parents list. Up until this change, the
noms layer stores commit parents as a Set, which is unordered and orders the
parents based on their commit hash.

This changes commit struct to carry both parents Set and parentsList List.
CommitOptions supplies a ParentsList, but both get stored for backwards
compatibility with existing dolt clients.

This change does not include changes to start using the stored parentsList in
things like ancestor traversal or `dolt log`. The intended migration is that
the read logic will read from `parentsList` in a commit if it is present, and
will fall back to the `parents` Set if it is not.

Eventually we will be able to migrate to not writing `parents` Set anymore.
There is no current plan to drop support for reading `parents` Set when
`parentsList` is not available.
2020-07-08 10:40:43 -07:00
Aaron Son
5fc6fd5d6a go: Update for dolt at root of repository. 2019-07-24 10:28:54 -07:00
Aaron Son
732086a9c7 dolt/go: Add copyright notices to every file. For files from noms, retain and reference the previous copyright notice as well. 2019-07-22 17:06:35 -07:00
Brian Hendriks
de36628918 update paths 2019-06-21 12:06:08 -07:00
Brian Hendriks
6ae6d7e595 move store files to the structure we want 2019-06-21 11:55:01 -07:00