Nick Tobey
57affb8623
Remove unused context parameter from IsCommit and IsValueSubtypeOf
2023-04-24 14:30:52 -07:00
Nick Tobey
157a2555cd
Make datas.commitFromValue public.
2023-04-20 18:04:06 -07:00
Aaron Son
6e61b3a771
go/store/types: Thread ctx through Value.Less.
2023-03-06 09:35:40 -08:00
Aaron Son
4f3f4e17af
go/store/types: SerialMessage: Unify TupleRowStorage and SerialMessage.
...
Get rid of TupleRowStorage and use SerialMessage everywhere. In turn, change
SerialMessage so that it carries its kind and size prefix as part of itself.
2022-07-22 11:56:48 -07:00
Aaron Son
642f2e0ba7
go: More migration away from shim into NodeStore.
2022-07-05 14:16:36 -07:00
Aaron Son
ae3dafd521
go/store/datas: commit_test.go: Express parent closure tests in terms of closure iterator.
2022-06-13 14:54:16 -07:00
Aaron Son
e934040b25
go/store/datas: Small cleanup of code location and some function names for commit closures.
2022-06-13 14:41:25 -07:00
Aaron Son
7a734ccddb
go/store/prolly: Add the ability to iterate a Map backwards from the end.
2022-06-09 16:37:58 -07:00
Aaron Son
c2a1b7c5a6
go/store/datas: Small cleanup for val.TupleDesc handling.
2022-06-09 14:43:22 -07:00
Aaron Son
115d218641
go/store/datas: repoformat.
2022-06-09 14:28:49 -07:00
Aaron Son
f3c19bce4e
go/store/datas: Get TestCommitParentsClosure passing with DOLT_DEV.
2022-06-09 14:27:56 -07:00
Aaron Son
11090d90bd
go/store/datas: Make some stuff package private.
2022-04-27 15:48:39 -07:00
Aaron Son
575b70615e
go/store/datas: CommitForValue, LoadCommitAddr.
2022-04-04 13:26:01 -07:00
Aaron Son
f95b38eaa9
go/store/datas: FindCommonAncestor takes *Commit parameters. LoadCommitRef exported.
2022-04-04 13:26:01 -07:00
Aaron Son
8f4cb102db
go/store/datas: GetCommitParents: Make parent walks work on commit structs/messages, not Refs. Step towards removing heights from message refs.
2022-04-04 13:26:01 -07:00
Aaron Son
be27368901
go/store/datas: GetCommitValue -> GetCommittedValue.
2022-04-04 13:26:01 -07:00
Aaron Son
d69ac33738
go/store/datas: FindCommonAncestor returns addr, not Ref.
2022-04-04 13:26:01 -07:00
Aaron Son
7b1406ccce
Revert "Revert "Merge pull request #3077 from dolthub/aaron/datas-commit-as-fb-message""
...
This reverts commit ee68e00000 .
2022-03-29 11:09:54 -07:00
Aaron Son
ee68e00000
Revert "Merge pull request #3077 from dolthub/aaron/datas-commit-as-fb-message"
...
This reverts commit 87bf948031 , reversing
changes made to b9e2348472 .
2022-03-28 17:40:09 -07:00
Aaron Son
80bb5cf3ef
go/store/datas: Fix go vet unreachable code in commit_test.
2022-03-23 15:32:39 -07:00
Aaron Son
ce1dee71ce
store/datas: __DOLT_DEV__ format serializes commits as flatbuffer messages.
2022-03-23 14:07:56 -07:00
Aaron Son
28e0aa9796
go/store/datas: Iterator on commit_flatbuffer.
2022-03-22 10:29:17 -07:00
Aaron Son
35aafdf82d
go/store/datas: Make the names of commit struct fields package private.
2022-03-17 16:22:00 -07:00
Aaron Son
b67c7ca41f
store/datas,doltdb: Convert some Commit accesses to go through types.Value instead of types.Struct.
2022-03-17 14:05:41 -07:00
Aaron Son
d980fa15ca
go/store/datas: Remove many uses of MaybeHeadRef.
2022-03-16 16:40:26 -07:00
Aaron Son
c4b74b8878
store/datas: CommitOptions: Remove types references.
2022-03-10 13:52:08 -08:00
Aaron Son
e0b8c4f46b
go/store/types: Create a __DOLT_DEV__ format.
...
Moves go/store/datas to always use ReadValue/WriteValue, and creates a
SerialMessage types.Value type whose implementation is a lot like InlineBlob.
Implements WalkRefs for SerialMessage.
This lets the full stack of dolt functionality work while we transition types
from the top of the DAG.
2022-03-03 16:23:35 -08:00
Aaron Son
c6e5cfa0bc
go/store/datas: Pass at a read path for fb/serial Tag heads.
2022-03-01 17:16:48 -08:00
Aaron Son
52fc803365
Remove ValueReadWriter interface from Database.
2022-02-01 17:20:06 -08:00
Aaron Son
8cece700e8
go/store/datas: First pass at implementing FindCommonAncestor when parents_closure is present.
2021-10-12 09:40:55 -07:00
reltuk
ad14ca9c44
[ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh
2021-10-11 21:03:19 +00:00
Aaron Son
812c5fccd8
go/store/datas: Ref the parents_closure Map, instead of storing it inline.
2021-10-11 13:57:30 -07:00
Aaron Son
e130603bcd
go/store/datas: Update parents_closure tests to assert on map values as well.
2021-10-08 10:07:54 -07:00
Aaron Son
d769a2c514
go/store/datas: Add some tests for parents_closure value.
2021-10-08 10:07:54 -07:00
Aaron Son
90061c2fd9
go/store/datas: Implement getParentsClosure to materialize the parents closure.
2021-10-08 10:07:54 -07:00
Aaron Son
646c91d093
go/store/datas: Add parents_closure to commit struct.
2021-10-08 10:07:54 -07:00
Aaron Son
17dc3e72c3
store/datas: NewCommit -> newCommit, start threading parentsSkipList parameter through.
...
store/datas: Add ability to store parents_skip_list field to Commit Struct.
2021-10-08 10:07:54 -07:00
Andy Arthur
9cdfc0e639
doc comments
2021-08-01 20:22:40 -07:00
Andy Arthur
3ebf3cd1f9
fix typo
2021-07-31 11:34:57 -07:00
Andy Arthur
61d09f56a9
added lazy ref closure
2021-07-31 11:15:31 -07:00
Andy Arthur
d9b5509e3d
find common ancestor using transitive ref closure
2021-07-31 10:50:29 -07: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
8235268e8a
go: store/datas: Write a test for FindCommonAncestor cross-Database behavior.
2020-09-14 14:28:48 -07:00
Aaron Son
6a909bc179
go/store/datas: Update FindCommonAncestor to work when two commits are from different ValueReadWriters.
2020-09-14 12:43:33 -07:00
Andy Arthur
424790e6ab
unittest
2020-08-27 16:28:42 -07:00
Aaron Son
6c466ddcf3
go/store/datas: commit.go: parentsList -> parents_list.
2020-07-13 10:48:51 -07:00
Aaron Son
a99c6fa1b1
go/store/datas: commit.go: NewCommit takes only parents list, not set and list.
2020-07-13 10:02:39 -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
Daylon Wilkins
146dbf1104
Types package simplification for easier type insertion
2019-10-31 16:00:38 -07:00