Commit Graph

93 Commits

Author SHA1 Message Date
Erik Arvidsson e2f261b142 Go: Compute commit type based on value and parents
We now compute the commit type based on the type of the value and
the type of the parents.

For the first commit we get:

```
struct Commit {
  parents: Set<Ref<Cycle<0>>>,
  value: T,
}
```

As long as we continue to commit values with type T that type stays
the same.

When we later commits a value of type U we get:

```
struct Commit {
  parents: Set<Ref<struct Commit {
    parents: Set<Ref<Cycle<0>>>,
    value: T | U
  }>>,
  value: U,
}
```

The new type gets combined as a union type for the value of the inner
commit struct.

Fixes #1495
2016-07-18 14:28:56 -07:00
Erik Arvidsson 229c1708a2 Noms is a not a tool for *iterating* with Noms data (#2078)
Fixes #2051
2016-07-18 10:18:36 -07:00
mgedigian e3a891bed7 Prevent sync crash when source is invalid (#2002)
* When sync source is not a valid object, report error without crashing.

Fixes #1983
2016-07-17 17:31:25 -07:00
Ben Kalman 534faa6b6d exit noms as soon as less quits, not when stdout closes (#2068) 2016-07-15 10:10:57 -07:00
Ben Kalman be463555f6 Add noms log -oneline option (#2067) 2016-07-14 16:58:16 -07:00
Mike Gray 4dd9415a1a orderedSequenceDiff more like indexedSequenceDiff - parallel (#1961)
orderedSequenceDiff more like indexedSequenceDiff - parallel and working top-down rather than sequential
2016-07-12 17:57:26 -07:00
Erik Arvidsson 1507b8dd8f Go: Change hash function to sha512 2016-07-12 13:59:08 -07:00
Mike Gray b6f19dfea5 number encoding (#1845)
Moved to encoding Values of type Number as 2 varints.
2016-07-11 12:08:56 -07:00
Ben Kalman c80be5c1ec Formatting nits for noms sync progress (#1985) 2016-07-07 15:03:25 -07:00
Ben Kalman f57353ea89 Include MB and MB/s in sync progress (#1980) 2016-07-06 16:26:13 -07:00
Ben Kalman 53b9ce3c1e Add pull chunk progress to noms sync (#1950) 2016-07-06 15:01:32 -07:00
Aaron Boodman 6243ac01ce Minor fixens to noms command UI (#1978) 2016-07-06 13:14:05 -07:00
Mike Gray a7f29a716d noms as one command line application, with version and help (#1874) 2016-07-06 15:38:25 -04:00
Aaron Boodman 1d752e3101 Update license: Noms will be copyright Attic Labs. (#1976) 2016-07-05 22:07:42 -07:00
Mike Gray b2a4aa62b7 removing runtime.GOMAXPROCS calls (#1947) 2016-07-01 17:42:46 -04:00
Aaron Boodman 2921ca343c Part 2: Move things that are not samples out of samples/go (#1944) 2016-07-01 11:58:26 -07:00
Aaron Boodman 2386afc7fb Move stuff that is not samples out of samples directory (#1943)
* Move samples/go/*perf-reg to go/perf/

They aren't really samples.

* Move samples/go/util/check_error.go to go/d

* Remove samples/go/util/client_flags.go - unused

* remove httpcache.go - unused

* Remove samples/go/util/rungen.go - no generated code here anymore

* move NomsValueFromJSON to go/util/jsontonoms
2016-07-01 11:04:17 -07:00
Rafael Weinstein 6fc16866b4 you get a bufio. you get a bufio... (#1938)
you get a bufio. you get a bufio
2016-07-01 06:22:02 -07:00
Erik Arvidsson 40a2f661a7 Fix issue with missing size in expected diff output (#1933) 2016-06-29 14:20:10 -07:00
Mike Gray 7a1817d287 channels for orderedSequenceDiff (#1926) 2016-06-29 16:56:46 -04:00
Ben Kalman 038192cfcc Make the spec package support types.Path (#1920) 2016-06-29 13:55:05 -07:00
Erik Arvidsson 0dc12c9e3d HRS: Show the size of containers (#1925)
Fixes #1837
2016-06-28 17:04:08 -07:00
Rafael Weinstein 3a27e81a3e Parallelize noms-log (#1896)
Parallelize noms-log
2016-06-25 13:06:28 -07:00
Rafael Weinstein 591093756c Fix goroutine leak in list diff (#1899)
Cleanup goroutines in list diff when closed
2016-06-25 12:13:40 -07:00
Mike Gray 71d4f0eef7 list/indexed diff with go channel for response (#1895) 2016-06-23 17:32:07 -07:00
Dan Willhite 095d49fa84 New error handling. 2016-06-22 12:11:31 -07:00
Aaron Boodman 82b063a1f5 noms (diff|log|show): gracefully handle user specifying non-existent spec (#1849) 2016-06-20 17:47:47 -07:00
Dan Willhite c00b3aeb72 Don't emit type info in diff. Fixes #1831 2016-06-16 14:04:46 -07:00
Aaron Boodman d58d558548 Make types.String not cache ref (#1836)
Fixes https://github.com/attic-labs/noms/issues/1542
2016-06-16 07:04:28 -07:00
Dan Willhite a3a78d695d Add HeadValue() and MaybeHeadValue() to dataset.go and js equivalents
Fixes #1801.
2016-06-15 11:16:25 -07:00
Aaron Boodman 01be9f1705 Introduce spec.Get(Database|Dataset|Path) conveniences (#1813)
Fixes: https://github.com/attic-labs/noms/issues/1800
2016-06-14 14:06:22 -07:00
Mike Gray 166a83979b limit the size of the edit distance matrix (#1739) 2016-06-13 17:18:35 -04:00
Dan Willhite 971a41d2a3 Merge pull request #1793 from willhite/b-1791
Remove flags section from noms help. #1791
2016-06-13 12:52:46 -07:00
Dan Willhite 67bbdad7eb Remove flags section from noms help. #1791 2016-06-13 12:01:55 -07:00
Aaron Boodman fcf772dccd move noms/samples/go/flags -> noms/go/spec (#1799) 2016-06-12 15:42:50 -07:00
Dan Willhite 6cc5b22b32 Merge pull request #1770 from willhite/log-diff
Log diff
2016-06-10 11:06:29 -07:00
Chris Masone e35a705da5 Go: Simplify enabling profiling
One side effect of the way that Go's flag library works is that any
flag that's defined at the global scope by any library that's built
into your binary shows up in your help -- whether you honor it or
not. Arguably, including the library and calling its entry points
should be tantamount to honoring the flags. This change makes the
profiling flags behave that way -- there's one function that you call
to turn on whichever kinds of profiling the user specifies on the
command line. It returns an object with a Stop() method that you call
to shut down profiling and flush data, like so:

defer profile.MaybeStartProfile().Stop()
2016-06-10 09:01:13 -07:00
Mike Gray c77bc3fc3a adding gitignores for noms cmds (#1772) 2016-06-09 22:02:57 -04:00
Dan Willhite 9a49bf9567 Print out diffs in noms-log 2016-06-09 13:45:12 -07:00
Rafael Weinstein 10482e26e4 Remove postRefs end point (#1761) 2016-06-08 15:23:05 -07:00
Aaron Boodman 89f07b675a csv/csv-import: add support for importing to map. (#1754)
csv/csv-import: add support for importing to map.
2016-06-08 15:18:04 -07:00
Erik Arvidsson 5571e0bc6f Add commas to HRS of struct type (#1759)
This makes the struct more consistent with the rest.
2016-06-08 14:54:47 -07:00
cmasone-attic 00af81440f Move Go profiling helpers out of samples/ (#1757)
These are used in cmd as well, so it seemed weird to have
them over in samples/util
2016-06-08 14:26:44 -07:00
Dan Willhite f371a235d5 Change dataspec syntax to use '::' in path specs. 2016-06-07 15:01:26 -07:00
Aaron Boodman 8aab8924d1 Rename clients to samples 2016-06-05 02:37:28 -07:00
Aaron Boodman bb7ac52265 Move the Go SDK into noms/go 2016-06-05 02:14:49 -07:00
Erik Arvidsson 716ee29be3 Remove usage of ToPrimitive (#1725) 2016-06-03 15:22:06 -07:00
Dan Willhite 132b8629a9 Merge pull request #1641 from willhite/diff
noms-diff command
2016-06-03 14:05:57 -07:00
Dan Willhite f04416d900 Review changes. 2016-06-03 11:18:47 -07:00
Erik Arvidsson 1b6ef9ceee Rename Parent<> to Cycle<> (#1718) 2016-06-03 10:31:27 -07:00