Commit Graph

40 Commits

Author SHA1 Message Date
Aaron Son 6eeae42959 go/store/...: Cleanup unprincipled use of Format_7_18, mostly in tests. 2022-05-10 16:02:49 -07:00
jennifersp 2796a81b43 fix dolt log pager panics with ctrl+c on Windows (#2789) 2022-02-21 13:50:11 -08:00
jennifersp 058946246d add pager to dolt log (#2482) 2021-12-15 11:03:59 -08:00
Eng Zer Jun 8164a625c7 refactor: move from io/ioutil to io and os package
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-10-05 01:40:59 +08:00
Daylon Wilkins 6b2b68923b Further attempts to fix ACCESS_DENIED error on Windows 2021-07-15 13:26:59 -07:00
Aaron Son eb96988abb Merge remote-tracking branch 'origin/master' into aaron/diff-summary-error-handling 2020-11-02 11:07:55 -08:00
Aaron Son 84c3066348 go/**/*.go: Update copyright headers for company name change. 2020-11-02 10:17:02 -08:00
Aaron Son 3030925c3d go: Convert some diff functions to use errgroup instead of atomicerr.
Attmept to clean up error signaling in diff summary.
2020-10-31 08:27:57 -07:00
Aaron Son 2b0c597ff4 go/store/{datas,util/tempfiles}: Fix some races in map writes. One effects clones, one effects only tests. 2020-10-26 15:47:25 -07:00
Andy Arthur 3bad106a28 first pass at gc 2020-10-12 18:29:19 -07:00
Andy Arthur 8724ea9be7 windows fix? 2020-10-12 10:00:32 -07:00
Daylon Wilkins b5bb663233 Reference new org name and updated trigger logic 2020-09-25 15:35:04 -07:00
Brian Hendriks db5b60cc56 parallelism (#841) 2020-08-21 12:22:09 -07:00
Brian Hendriks 96331a5b69 go 1.15 fixes (#844) 2020-08-21 07:35:17 -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
Brian Hendriks 7cf6c6da71 Fix issue with renaming temp files across volumes (#671) 2020-05-08 15:06:57 -07:00
Aaron Son 538179ec09 go/store/util/verbose: Copyright headers to appease prepr.sh. 2019-12-19 17:19:21 -08:00
Aaron Son eebb965e1d go/store/util/verbose: Store zap.Logger instead of making a new one every Logger call. 2019-12-19 17:03:00 -08:00
Aaron Son 7981295783 go/store/util/verbose: Replace verbose Log function with ctx-aware zap.Logger. 2019-12-19 14:50:45 -08:00
Aaron Son 390816ee9d go/store/util/verbose: Add ability to override Log function. 2019-12-19 13:03:58 -08:00
Daylon Wilkins 146dbf1104 Types package simplification for easier type insertion 2019-10-31 16:00:38 -07:00
Brian Hendriks 88c208e4ca race condition and deadlock fixes (#109) 2019-10-04 09:48:49 -07:00
Brian Hendriks 55c2412db3 error changes (#7)
The existing noms codebase uses panics for signaling errors in most cases.  This is not idiomatic go, and it is not the optimal behavior when building cloud services, or products on top of noms as a panic in any go routine causes the entire process to exit.

This is a large step in removing panics, and bubbling errors up through the code.
2019-08-06 15:00:02 -07:00
Aaron Son 5fc6fd5d6a go: Update for dolt at root of repository. 2019-07-24 10:28:54 -07:00
Aaron Son 23a0f5a33e Merge remote-tracking branch 'origin/master' into aaron/dolt-3pdeps-license-fetching 2019-07-23 16:07:50 -07:00
Aaron Son 6619700b5a dolt/go: Add utils/repofmt/check_fmt.sh, and standardize goimports config across repository. 2019-07-23 11:59:06 -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
Aaron Son 15973f60c1 dolt/go: store/types: Rename Format to NomsBinFormat.
Standardize parameter name for *NomsBinFormat to nbf. Standardize `nbf` as
first (after `ctx`) parameter. Remove unnecessary `nbf` parameters when format
is available from incoming `Value` or `ValueReader`.
2019-07-16 13:27:26 -07:00
Aaron Son 97d786fd10 dolt/go/store: Remove some unused *Format parameters. 2019-07-12 10:22:10 -07:00
Aaron Son 80c2e40b60 dolt/go: Changes from Equals not taking *Format. 2019-07-12 10:21:37 -07:00
Aaron Son 644b2be0f2 dolt/go/store: marshal: Remove Format_7_18 references, thread *Format. 2019-07-12 10:17:04 -07:00
Aaron Son a3bfb80ffb dolt/go/store: types: Thread *Format. 2019-07-12 10:15:47 -07:00
Aaron Son 072d5cd178 dolt/go/store: marshall: Thread *Format. 2019-07-12 10:14:22 -07:00
Aaron Son 4af7c75639 dolt/go/store: types: Thread *Format in Type. 2019-07-12 10:14:22 -07:00
Aaron Son d8f2339413 dolt/go/store: types: Thread *Format. 2019-07-12 10:12:08 -07:00
Aaron Son 37283814cc dolt/go/store: types: struct: Thread *Format. 2019-07-12 10:12:08 -07:00
Daylon Wilkins bdadb34cc6 Fixes Dolt tests on Windows 2019-07-03 16:36:30 -07:00
Brian Hendriks aaddfa31b4 remove more code 2019-06-21 16:31:12 -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