Commit Graph

3732 Commits

Author SHA1 Message Date
Tommi Virtanen
fdd1cd8dc0 Remove fsrepo.At, make Open a constructor function
Nobody calls At without immediately calling Open.

First step, a mechanical transformation. Cleanups will follow.
2015-03-13 20:19:03 -07:00
Tommi Virtanen
215fed1051 fsrepo.LockedByOtherProcess no longer checks for local opens
This is only called from `ipfs` command line tool well before it opens
the repo. The behavior change here causes a false positive if the
current process has already opened the repo. That's a bit late to ask
this question, anyway, and is not expected to have ever triggered.
2015-03-13 19:43:06 -07:00
Tommi Virtanen
e0bee137e9 fsrepo.Remove no longer checks for concurrently open instances
The only caller is `ipfs init`, which at that time does not hold a
repository open, and refuses to run on existing repos anyway.
2015-03-13 19:43:04 -07:00
Juan Batiz-Benet
bc55fb539f Merge pull request #918 from jbenet/repo-dead-code
Dead code cleanup
2015-03-12 07:23:21 -07:00
Juan Batiz-Benet
3ded27c5e3 Merge pull request #921 from jbenet/moreDeadCode
rm util.NewByteChanReader()
2015-03-12 07:03:11 -07:00
Henry
069b4b5c8e rm util.NewByteChanReader() 2015-03-12 14:50:01 +01:00
Juan Batiz-Benet
2c2bcb8a3a Merge pull request #909 from kkoroviev/fix-daemon-races
Dirty hack to fix race conditions in the daemon
2015-03-12 03:53:01 -07:00
Konstantin Koroviev
01db359c0f Kill the daemon during its startup 2015-03-12 12:05:10 +02:00
Konstantin Koroviev
d23bed5baa Rename ContextIsReadyToBeClosed to InitDone 2015-03-12 11:42:07 +02:00
Juan Batiz-Benet
796db710b6 Merge pull request #889 from jbenet/ipns/refactor-dagmod
Ipns/refactor dagmod
2015-03-12 01:37:41 -07:00
Tommi Virtanen
63c25285b2 Dead code cleanup: remove AllKeys from blockstore
Nothing uses it.
2015-03-11 21:46:57 -07:00
Tommi Virtanen
1a48e6a91f Dead code cleanup: remove Range support from blockstore
Nothing uses it, and offset+limit is a bad query mechanism for
mutating data.
2015-03-11 21:46:57 -07:00
Tommi Virtanen
49732d24fb Dead code cleanup: repo.IsInitialized
The version actually used is in fsrepo, and belongs there as it knows
about fsrepo file layout.
2015-03-11 21:46:30 -07:00
Jeromy
50f0b06bdf Correct pinning for dagmodifier, and a bunch more tests 2015-03-11 19:38:01 -07:00
Jeromy
5ead2a9fab overwrite optimization for dagmodifier 2015-03-11 19:38:01 -07:00
Jeromy
370285fcfa remove temp code in Coal test, and make Size not have to flush 2015-03-11 19:38:01 -07:00
Jeromy
218cc0185c remove pointless TODO 2015-03-11 19:38:01 -07:00
Jeromy
3119088ae7 address comments from @cryptix in PR 2015-03-11 19:38:01 -07:00
Jeromy
58d5c852fd add benchmark 2015-03-11 19:38:01 -07:00
Jeromy
136bece850 Code cleanup 2015-03-11 19:38:01 -07:00
Jeromy
9832545d84 better error message from dagreader with bad protofbuf 2015-03-11 19:38:01 -07:00
Jeromy
63e15abd8f refactor dagmodifier to work with trickledag format 2015-03-11 19:38:01 -07:00
Juan Batiz-Benet
565505c4ba Merge pull request #917 from jbenet/repo-cleanup
Repo cleanup
2015-03-11 19:34:17 -07:00
Tommi Virtanen
24a32af3f1 fsrepo components simplification: directly use datastore 2015-03-11 12:55:13 -07:00
Tommi Virtanen
695b2c491a Rename variable to avoid collision with the path package 2015-03-11 12:37:26 -07:00
Tommi Virtanen
fb39a30c14 fsrepo components simplification: directly use eventlog 2015-03-11 12:14:27 -07:00
Tommi Virtanen
1064d5e01f Rename variable to avoid collision with the path package 2015-03-11 11:10:13 -07:00
Tommi Virtanen
22b6ee328b fsrepo components simplification: directly use config 2015-03-11 11:04:33 -07:00
Tommi Virtanen
0d34b026d5 Ensure FSRepo implements Repo 2015-03-11 10:41:02 -07:00
Juan Batiz-Benet
90d2113f99 Merge pull request #896 from jbenet/t0060_reactivate_daemon_tests
t0060: reactivate daemon tests
2015-03-10 15:55:52 -07:00
Juan Batiz-Benet
c586b6e497 Merge pull request #914 from jbenet/fix/errOnBrokenObjectPut
ipfs object put: return error if object is empty
2015-03-10 15:53:48 -07:00
Henry
b688e72de0 ipfs object put: return error if object is empty (fixes #883) 2015-03-10 22:58:50 +01:00
Juan Batiz-Benet
e06016116d Merge pull request #895 from jbenet/sharness_check_curl_response
sharness: add function to test curl response
2015-03-10 08:39:55 -07:00
Juan Batiz-Benet
ce439133f3 Merge pull request #910 from tv42/config-mode
Config file is not executable, and must not be world accessible
2015-03-10 07:46:50 -07:00
Juan Batiz-Benet
adeb243afc Merge pull request #908 from jbenet/sharness_readme_improvements
sharness/README: add writing tests and debugging
2015-03-10 07:04:48 -07:00
Christian Couder
37bfef884c t0060: reactivate daemon tests
Tests in this script had been deactivated because
there was no good way to wait until the daemon was
ready. Now that we can use pollEndpoint for that
it's time to reactivate the tests.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-03-10 15:02:19 +01:00
Christian Couder
c39b5a7430 sharness: add function to test curl response
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-03-10 14:56:09 +01:00
Christian Couder
f67522e3f3 sharness/README: add writing tests and debugging
Add information from the discussion of PR #891.
While at it, suggest using -v and -i options to debug one test.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-03-10 14:51:44 +01:00
Juan Batiz-Benet
ae35bd261c updated authors file 2015-03-10 06:31:05 -07:00
Juan Batiz-Benet
1f1f9f954e Merge pull request #912 from jbenet/fix/isDirOnObject
ls: introduce specific output types
2015-03-10 06:08:42 -07:00
Henry
759437e054 ls: introduce specific output types (removes IsDir from object plumbing commands) 2015-03-10 13:56:57 +01:00
Tommi Virtanen
5baf3c7fc1 Config file is not executable, and must not be world accessible
It contains the private key.
2015-03-09 12:03:17 -07:00
Konstantin Koroviev
afd497e194 Dirty hack to fix race conditions in the daemon 2015-03-09 16:39:41 +02:00
Juan Batiz-Benet
e0cf24bfeb Merge pull request #887 from jbenet/deadCode
dead code
2015-03-09 02:37:36 -07:00
Henry
70819671d3 cleaned up 'ipfs init' 2015-03-09 10:22:12 +01:00
Henry
d88ba19357 disabled 'ipfs update' command for now 2015-03-09 10:22:11 +01:00
Henry
e8403b1f11 removed dead code
- old http server (superseeded by core/corehttp)
- unused makeDatastore() helpers
2015-03-09 10:21:35 +01:00
Juan Batiz-Benet
92c827b50f Merge pull request #891 from jbenet/t0110_remove_wget
t0110: replace wget with curl
2015-03-09 00:43:55 -07:00
Juan Batiz-Benet
1011067455 Merge pull request #867 from jbenet/ipns/trickle-append
Ipns/trickle append
2015-03-09 00:36:08 -07:00
Juan Batiz-Benet
bcbc268d42 Merge pull request #900 from jbenet/fix/bitswap-ctx-respect
respect contexts in a more timely manner
2015-03-09 00:35:22 -07:00