Commit graph

24366 commits

Author SHA1 Message Date
https://me.yahoo.com/a/iOGTltEpmOTQ.xZ99NFP5c7Zdcc-#6a7ba
492b36a456 Added a comment: keys from metadata 2018-09-07 15:57:37 +00:00
emanuele.olivetti@47d88ed185b03191e25329caa6fabc2efb3118b2
50e3cac811 Added a comment 2018-09-07 12:27:28 +00:00
inecas@fe552cc962c331a5cb1499e80bd5b2aa0808d987
844595a897 Added a comment 2018-09-07 07:25:54 +00:00
yarikoptic
c16856b8eb Added a comment: the reason is system wide git version! 2018-09-07 00:13:33 +00:00
yarikoptic
80f61cfaaa initial report on problem with v6 in subdirectory 2018-09-06 23:43:12 +00:00
Joey Hess
70e849a8e6
devblog 2018-09-06 17:31:42 -04:00
Joey Hess
19e91d5ee3
Merge branch 'master' of ssh://git-annex.branchable.com 2018-09-06 14:37:42 -04:00
Joey Hess
b7daf2685f
support public versioned S3 access
Makes git annex whereis display the versionId urls.

And, when a s3 remote is enabled without creds, git-annex will use the
versionId urls to access its contents.

This commit was sponsored by Fernando Jimenez on Patreon.
2018-09-06 14:31:41 -04:00
Joey Hess
0630ef166b
thought 2018-09-06 13:21:46 -04:00
Joey Hess
256669a85d
close as I don't want to do this 2018-09-06 13:16:13 -04:00
Joey Hess
1c86ba8ee8
close, these seem done already 2018-09-06 13:15:21 -04:00
Joey Hess
50fb6a86f9
thoughts 2018-09-06 13:09:18 -04:00
https://me.yahoo.com/a/iOGTltEpmOTQ.xZ99NFP5c7Zdcc-#6a7ba
1f0cbec2a4 2018-09-06 04:30:23 +00:00
https://me.yahoo.com/a/iOGTltEpmOTQ.xZ99NFP5c7Zdcc-#6a7ba
926dd646fc Added a comment 2018-09-06 04:17:35 +00:00
anarcat
f396676dba link to webdav more explicitely 2018-09-06 01:01:04 +00:00
anarcat
694f612fba Added a comment: added as a special remote 2018-09-06 00:58:52 +00:00
anarcat
fc78b33389 add the rclone special remote explicitely because it is awesome 2018-09-06 00:58:24 +00:00
anarcat
bb89e538c7 create an rclone page, since that's actually a thing 2018-09-06 00:54:40 +00:00
anarcat
94093a7b16 sort lists of remotes 2018-09-06 00:52:58 +00:00
Joey Hess
f7f413251e
devblog 2018-09-05 17:27:39 -04:00
Joey Hess
7407a80c27
S3: Support AWS_SESSION_TOKEN
This commit was sponsored by Boyd Stephen Smith Jr. on Patreon.
2018-09-05 15:53:57 -04:00
Joey Hess
ae5d95d80b
Merge branch 'master' of ssh://git-annex.branchable.com 2018-09-05 15:36:33 -04:00
Joey Hess
b600ad71ce
make linkToAnnex freezeContent the object file
v6: Fix annex object file permissions when git-annex add is run on a
modified unlocked file, and in some related cases.

If a hard link is made, don't freeze it; annex.thin
uses writable object files.

Also: For some reason, linkToAnnex used to thawContent src. I can see no
reason why it needed to do that, so I eliminated that.

This commit was sponsored by Brock Spratlen on Patreon.
2018-09-05 15:27:22 -04:00
ilyawebmail@d5db0da13c02cda3860f534f3f02acdc914360b9
609d8b745f 2018-09-05 19:09:06 +00:00
Joey Hess
c4bc446cb3
Merge branch 'master' of ssh://git-annex.branchable.com 2018-09-05 13:53:28 -04:00
Joey Hess
0a7c5a9982
dropdead per-remote metadata
Had to refactor pure code into separate modules so it is accessible
inside Annex.Branch.Transitions.

This commit was sponsored by Peter on Patreon.
2018-09-05 13:52:46 -04:00
ilyawebmail@d5db0da13c02cda3860f534f3f02acdc914360b9
7827055496 2018-09-05 17:08:11 +00:00
Joey Hess
f1e5dfb7c7
close 2018-09-05 12:21:52 -04:00
Joey Hess
69907e397f
revert a few problem areas of git-annex.cabal patch 2018-09-05 11:47:00 -04:00
Joey Hess
e96b8c4774
Merge branch 'master' of ssh://git-annex.branchable.com 2018-09-05 11:16:55 -04:00
Joey Hess
d5a8fbcc65
remove some no longer present build flags from example 2018-09-05 11:16:28 -04:00
fft
165783827b 2018-09-05 12:18:54 +00:00
fft
f760555c57 2018-09-05 12:13:48 +00:00
Horus
3cd10c246c 2018-09-05 07:34:23 +00:00
Horus
72682144bc 2018-09-05 07:33:41 +00:00
Horus
1a70df53c8 2018-09-05 07:32:49 +00:00
ewen
8afd9b5c95 Added a comment: Synology bug report 2018-09-03 22:36:07 +00:00
ewen
8b9cd04815 Added a comment: timer_create 2018-09-03 22:06:00 +00:00
amoebae@ae902fc700f29a8a9aa2547a9ea8ec77c0f8e30c
793f71ed0c 2018-09-03 10:56:04 +00:00
ewen
ff74702d3d x86-32 standalone build break on Synology DS216+ 2018-09-03 04:30:42 +00:00
duncan_bayne
41b3bbeddf 2018-09-03 00:42:24 +00:00
duncan_bayne
81829125f8 Added a comment: Thanks :) 2018-09-03 00:39:08 +00:00
Joey Hess
522c5cce58
devblog 2018-08-31 14:18:38 -04:00
Joey Hess
8eb944ea11
close todo, open todo 2018-08-31 14:01:24 -04:00
Joey Hess
308f49e9ae
update 2018-08-31 13:56:32 -04:00
Joey Hess
b3d42283ad
use per-remote metadata storage for S3 version ID
Since the same key can be stored in a versioned S3 bucket multiple times
with different version IDs, this allows tracking them all. Not currently
needed, but if we ever want to drop from a versioned S3 bucket, we'll
need to know them all.

This commit was supported by the NSF-funded DataLad project.
2018-08-31 13:27:29 -04:00
Joey Hess
5c99f6247e
per-remote metadata storage
Actually very straightforward reuse of the metadata log file code.
Although I had to add a todo item as git-annex forget won't clean up
dead remote's metadata yet.

This would be worth adding to the external special remote interface
sometime. Have not opened a todo though, guess I'll wait until something
needs it.

This commit was supported by the NSF-funded DataLad project.
2018-08-31 12:23:22 -04:00
Joey Hess
9d78a4387f
update 2018-08-31 12:23:04 -04:00
Joey Hess
2cdcb1ea25
Merge branch 'master' of ssh://git-annex.branchable.com 2018-08-30 15:53:09 -04:00
Joey Hess
69d4c8dce6
devblog 2018-08-30 15:52:44 -04:00
Joey Hess
3a5d0402ba
update 2018-08-30 15:49:21 -04:00
Joey Hess
19dcff2b71
use S3 version ID for retrieval
Have to store the S3 object along with the version ID, so retrieval can
use the same object.

This commit was supported by the NSF-funded DataLad project.
2018-08-30 15:37:08 -04:00
kyle
5567496518 'annex add' locks unmodified file in V5 but not V6 2018-08-30 19:07:03 +00:00
Joey Hess
794e9a7a44
store S3 version IDs
Only done when versioning=yes is configured. It could always do it when
S3 sends back a version id, but there may be buckets that have
versioning enabled by accident, so it seemed better to honor the
configuration.

S3's docs say version IDs are "randomly generated", so presumably
storing the same content twice gets two different ones not the same one.
So I considered storing a list of version IDs for a key. That would
allow removing the key completely. But.. The way Logs.RemoteState works,
when there are multiple writers, the last writer wins. So storing a list
would need a different log format that merges, which seemed overkill to support
removing a key from an append-only remote.

Note that Logs.RemoteState for S3 is now dedicated to version IDs.
If something else needs to be stored, a new log will be needed to do it.

This commit was supported by the NSF-funded DataLad project.
2018-08-30 14:30:56 -04:00
Joey Hess
0ff5a41311
S3 versioning=yes config
Not yet used.

This commit was supported by the NSF-funded DataLad project.
2018-08-30 13:45:28 -04:00
yarikoptic
2969d93283 Added a comment: clear docker for ubuntu 18:04 - the same 2018-08-30 16:07:51 +00:00
kyle
d74c6ebf1f Added a comment: v5 2018-08-30 16:05:01 +00:00
yarikoptic
dd0283e985 Added a comment: reproduced more 2018-08-30 16:02:39 +00:00
yarikoptic
4b05d4179d Added a comment: confirming 2018-08-30 15:57:39 +00:00
Joey Hess
358178fbfb
don't untrust appendonly exports
Make exporttree=yes remotes that are appendonly not be untrusted, and not force
verification of content, since the usual concerns about losing data when an
export is updated by someone else don't apply.

Note that all the remote operations on keys are left as usual for
appendonly export remotes, except for storing content.

This commit was supported by the NSF-funded DataLad project.
2018-08-30 11:48:04 -04:00
Joey Hess
8b39db20b5
export appendonly support
Make `git annex export` check appendonly when removing a file from an
export, and not update the location log, since the remote still contains
the content.

This commit was supported by the NSF-funded DataLad project.
2018-08-30 11:18:20 -04:00
Joey Hess
a3fa9ea0b5
followup 2018-08-30 11:08:46 -04:00
83.175.76.211
41baab276e poll vote (/sdcard/annex) 2018-08-30 05:03:01 +00:00
kyle@9c8cc228b2254d7f0f8c42be54a2ac1b81edf416
92be1cc8c7 2018-08-29 21:20:26 +00:00
Joey Hess
dad627fa9e
remove false starts, simplify 2018-08-29 14:12:18 -04:00
Joey Hess
5b78952f78
misunderstood some code; simplify 2018-08-29 14:09:18 -04:00
Joey Hess
e216c18318
new much improved plan 2018-08-29 13:59:52 -04:00
Joey Hess
d3c9d72245
followup 2018-08-29 12:20:24 -04:00
Joey Hess
f54c72d2e1
Fix build on FreeBSD
This must have been broken for years..

This commit was sponsored by Jack Hill on Patreon.
2018-08-29 12:09:03 -04:00
Joey Hess
084e88964d
close 2018-08-29 12:04:46 -04:00
Joey Hess
332c1513f9
fix link 2018-08-29 11:02:16 -04:00
Joey Hess
b99d60172d
Merge branch 'master' of ssh://git-annex.branchable.com 2018-08-29 10:56:26 -04:00
Joey Hess
3874c5c88d
further thoughts 2018-08-29 10:56:02 -04:00
77.119.239.37
587e0983ac poll vote (/sdcard/annex) 2018-08-29 13:38:24 +00:00
77.119.239.37
661f603a62 poll vote (/sdcard/annex) 2018-08-29 13:38:17 +00:00
77.119.239.37
0f37b9c7ec poll vote (/sdcard/annex) 2018-08-29 13:38:10 +00:00
77.119.239.37
db0f98a619 poll vote (/sdcard/annex) 2018-08-29 13:38:03 +00:00
Joey Hess
759a87ad70
fix git command queue to be concurrency safe
Probably not noticed until now because the queue is large enough that two
threads each filling theirs at the same time and flushing is unlikely to
happen.

Also made explicit that each worker thread gets its own queue.
I think that was the case before, but if something was put in the queue
before worker threads were forked off, they could have each inherited the
same queue.

Could have gone with a single shared queue, but per-worker queues is more
efficient, because a worker can add lots of stuff to its own queue without
any locking.

This commit was sponsored by Ole-Morten Duesund on Patreon.
2018-08-28 13:16:33 -04:00
Joey Hess
3a71f3a4a9
reproduced 2018-08-28 12:35:15 -04:00
Joey Hess
ebdb17cda7
followup 2018-08-28 12:21:23 -04:00
Joey Hess
2b4a9a7cd8
Merge branch 'master' of ssh://git-annex.branchable.com 2018-08-28 12:14:41 -04:00
Joey Hess
b1280eb252
new todo (requested by yoh) 2018-08-28 12:14:06 -04:00
petr.marketlab@4024e478aebbe860ab1cbf03aca8adb30127c56e
2acca8a3ae 2018-08-28 15:26:07 +00:00
petr.marketlab@4024e478aebbe860ab1cbf03aca8adb30127c56e
1885cca783 2018-08-28 15:18:27 +00:00
Joey Hess
401a79675b
run git status before enabling clean filter
Avoids annex.largefiles inconsitency and also avoids a lot of
unneccessary calls to the clean filter when a large repo's clone
is being initialized.

This commit was supported by the NSF-funded DataLad project.
2018-08-28 10:36:22 -04:00
Joey Hess
82b28a8487
devblog 2018-08-27 15:10:16 -04:00
Joey Hess
6adc0d2b3f
bug triage 2018-08-27 15:10:05 -04:00
Joey Hess
10138056dc
v6: avoid accidental conversion when annex.largefiles is not configured
v6: When annex.largefiles is not configured for a file, running git add or
git commit, or otherwise using git to stage a file will add it to the annex
if the file was in the annex before, and to git otherwise. This is to avoid
accidental conversion.

Note that git-annex add's behavior has not changed, for reasons explained
in the added comment.

Performance: No added overhead when annex.largefiles is configured.
When not configured, there is an added call to catObjectMetaData,
which involves a round trip through git cat-file --batch.
However, the earlier catKeyFile primes the cache for it.

This commit was supported by the NSF-funded DataLad project.
2018-08-27 14:51:10 -04:00
Joey Hess
b3dfcd18fe
followup 2018-08-27 13:36:11 -04:00
Joey Hess
8478544b58
analysis, plan
This commit was supported by the NSF-funded DataLad project.
2018-08-27 13:14:34 -04:00
Joey Hess
d7f386a81d
reproduced with current 2018-08-27 12:20:58 -04:00
Joey Hess
d5980b7139
close, this was fixed last week 2018-08-27 12:15:43 -04:00
Joey Hess
4876f412fc
Merge branch 'master' of ssh://git-annex.branchable.com 2018-08-27 10:42:12 -04:00
Joey Hess
2c9f21e987
todo 2018-08-26 20:59:20 -04:00
duncan_bayne
5a90234f47 2018-08-26 02:37:25 +00:00
anarcat
af727108b0 update status to mention tor 2018-08-24 21:35:11 +00:00
anarcat
bfab1da5a7 mention that dat thing 2018-08-24 21:30:20 +00:00
hobbes@b2cacef69071743c3a831e60511062f7e014e52f
d8cd7c1ac4 Added a comment: Building with OpenBSD 2018-08-23 19:30:09 +00:00
Joey Hess
681ed8ea58
devblog 2018-08-22 16:10:27 -04:00
Joey Hess
98fd7ec6c9
recover from race between git mv+commit and git-annex get
Last of the known v6 races.

This also makes git add of a pointer file populate it when its content
is present in the annex. Which makes sense to do, I think.

This commit was supported by the NSF-funded DataLad project.
2018-08-22 16:01:50 -04:00
Joey Hess
50fa17aee6
v6: recover from race between git mv and git-annex get/drop
Update pointer file next time reconcileStaged is run to recover from the
race.

Note that restagePointerFile causes git to run the clean filter,
and that will run reconcileStaged. So, normally by the time the git
annex get/drop command finishes, the race has already been dealt with.
It may be that, in some case, that won't happen and the race will be
dealt with at a later point. git-annex could run reconcileStaged at
shutdown if that becomes a problem.

This does not handle the situation where the git mv is committed before
git-annex gets a chance to run again. git commit does run the clean
filter, and that happens to re-inject the content if it was supposed to
be dropped but is still populated. But, the case where the file was
supposed to be gotten but is not populated is not handled yet.

This commit was supported by the NSF-funded DataLad project.
2018-08-22 15:56:43 -04:00
Joey Hess
e9b2674281
plan 2018-08-22 13:58:32 -04:00
Joey Hess
38a934cf07
correction 2018-08-22 13:34:15 -04:00
Joey Hess
18ecf41917
avoid running reconcileStaged when the index has not changed
This commit was supported by the NSF-funded DataLad project.
2018-08-22 13:04:12 -04:00
rajagopal.abhejit@a18fbb434d26431ed70e7fad7bd6a696df2b7d85
65bd018f94 removed 2018-08-22 01:13:45 +00:00
rajagopal.abhejit@a18fbb434d26431ed70e7fad7bd6a696df2b7d85
529b84c5ca removed 2018-08-22 01:11:08 +00:00
rajagopal.abhejit@a18fbb434d26431ed70e7fad7bd6a696df2b7d85
7d0b838153 Added a comment 2018-08-22 01:10:54 +00:00
rajagopal.abhejit@a18fbb434d26431ed70e7fad7bd6a696df2b7d85
0b8759771a Added a comment 2018-08-22 01:10:40 +00:00
andrew@d9c20810619d89ecb4d8ebe187df122112b82fd9
fb5b2f1b7f Added a comment: Not connect to remote as part of initremote? 2018-08-21 23:34:55 +00:00
Joey Hess
5f31aba047
Merge branch 'master' of ssh://git-annex.branchable.com 2018-08-21 17:08:09 -04:00
Joey Hess
cff8eb430d
devblog 2018-08-21 17:07:46 -04:00
Joey Hess
5e56d9b620
v6: Update associated files database when git has staged changes to pointer files
This commit was supported by the NSF-funded DataLad project.
2018-08-21 17:02:20 -04:00
yarikoptic
78ecd6b17a Added a comment 2018-08-21 16:23:05 +00:00
yarikoptic
dae76d8ef3 fixup the trailer 2018-08-21 16:02:25 +00:00
Joey Hess
056b081280
followup 2018-08-21 11:56:51 -04:00
yarikoptic
e009c0efed original filing about web remote listing 2018-08-21 15:09:10 +00:00
Joey Hess
b8cd5fde17
idea 2018-08-20 16:13:46 -04:00
emanuele.olivetti@47d88ed185b03191e25329caa6fabc2efb3118b2
f8b4a1f70c 2018-08-20 15:54:11 +00:00
Gus
48fb6f9886 2018-08-17 22:16:45 +00:00
https://launchpad.net/~liori
5d0c336994 Added a comment 2018-08-17 21:58:03 +00:00
Gus
d1eabddee6 2018-08-17 21:44:05 +00:00
Joey Hess
085338a29d
response 2018-08-17 16:18:50 -04:00
Joey Hess
9091d52a1f
close old openbsd build bugs 2018-08-17 16:18:40 -04:00
Joey Hess
59b2ebbaeb
Merge branch 'master' of ssh://git-annex.branchable.com 2018-08-17 16:04:55 -04:00
Joey Hess
ab14d7cd9f
devblog 2018-08-17 16:04:30 -04:00
Joey Hess
54d49eeac8
avoid update-index race
This commit was supported by the NSF-funded DataLad project.
2018-08-17 16:03:40 -04:00
Joey Hess
ec91b6e4b2
plan to fix race 2018-08-17 11:18:53 -04:00
Joey Hess
35e1697377
expand 2018-08-17 10:48:18 -04:00
spwhitton
8a15ee0303 Added a comment 2018-08-17 14:44:13 +00:00
bnyn
127dc50898 2018-08-17 01:18:51 +00:00
Joey Hess
2e153de34a
close 2018-08-16 16:41:08 -04:00
Joey Hess
9eb708a11c
Merge branch 'master' of ssh://git-annex.branchable.com 2018-08-16 16:39:08 -04:00
Joey Hess
b187bc9cc6
devblog 2018-08-16 16:38:01 -04:00
Joey Hess
5799d325f0
update todo categories 2018-08-16 16:36:47 -04:00
Joey Hess
82a239675f
narrow the race where a file gets modified before update-index
Check just before running update-index if the worktree file's content is
still the same, don't update it when it's been modified. This narrows
the race window a lot, from possibly minutes or hours, to seconds or
less.

(Use replaceFile so that the worktree update happens atomically,
allowing the InodeCache of the new worktree file to itself be gathered
w/o any other race.)

This doesn't eliminate the race; it can still occur in the window before
update-index runs. When annex.queue is large, a lot of files will be
statted by the checks, and so the window may still be large enough to be a
problem.

When only a few files are being processed, the window is as small as it
is in the race where a modification gets overwritten by git-annex when
it updates the worktree. Or maybe as small as whatever race git
checkout/pull/merge may have when the worktree gets modified during it.
Still, I've kept a todo about this race.

This commit was supported by the NSF-funded DataLad project.
2018-08-16 15:56:43 -04:00
Joey Hess
82cfcfc838
better index file refresh method
Use git update-index --refresh, since it's a little bit more
efficient and the user can be told to run it if a locked index prevents
git-annex from running it.

This also fixes the problem where an annexed file was deleted in the index
and a get of another file that uses the same key caused the index update to
add back the deleted file. update-index will not add back the deleted file.

Documented in tips/unlocked_files.mdwn the gotcha that the index update
may conflict with other operations. I can't see any way to possibly avoid
that conflict.

One new todo about a race that causes a modification to be accidentially
staged.

Note that the assistant only flushes the git command queue when it
commits a modification. I have not tested the assistant with v6 unlocked
files, but assume most users of the assistant won't care if the index
shows a file as modified for a while.

This commit was supported by the NSF-funded DataLad project.
2018-08-16 14:16:24 -04:00
duncan_bayne
7e9d6c4ef1 Added a comment: RTFM 2018-08-16 04:25:27 +00:00
Joey Hess
4c5a9965c1
remove invalid todo item
I tested it, and it's ok. I think I was adding it under a filename that
produced a different key.
2018-08-15 13:34:48 -04:00
Joey Hess
24ed323208
response 2018-08-15 11:43:50 -04:00
https://launchpad.net/~liori
a6927da198 2018-08-15 14:07:31 +00:00
Joey Hess
e891e78032
devblog 2018-08-14 16:24:13 -04:00
Joey Hess
48e9e12961
finally fixed v6 get/drop git status
After updating the worktree for an add/drop, update git's index, so git
status will not show the files as modified.

What actually happens is that the index update removes the inode
information from the index. The next git status (or similar) run
then has to do some work. It runs the clean filter.

So, this depends on the clean filter being reasonably fast and on git
not leaking memory when running it. Both problems were fixed in
a96972015d, but only for git 2.5. Anyone
using an older git will see very expensive git status after an add/drop.

This uses the same git update-index queue as other parts of git-annex, so
the actual index update is fairly efficient. Of course, updating the index
does still have some overhead. The annex.queuesize config will control how
often the index gets updated when working on a lot of files.

This is an imperfect workaround... Added several todos about new
problems this workaround causes. Still, this seems a lot better than the
old behavior.

This commit was supported by the NSF-funded DataLad project.
2018-08-14 16:23:58 -04:00
Joey Hess
06fd4657db
response 2018-08-14 13:41:02 -04:00
jarno
3b155dd32d Added a comment 2018-08-14 16:03:39 +00:00
Joey Hess
63cfc1a615
Merge branch 'master' of ssh://git-annex.branchable.com 2018-08-14 11:08:44 -04:00
Joey Hess
66a4483dfa
response 2018-08-14 11:02:55 -04:00
hoabg102@4a7a5918bc078f792113da142cf8c6d825a1825c
f0779bc9f1 2018-08-14 10:22:06 +00:00
Joey Hess
d8a8f2df70
full plan 2018-08-13 17:51:02 -04:00
Joey Hess
86df0d6e1b
even better idea 2018-08-13 17:43:16 -04:00
Joey Hess
df5823cea0
update 2018-08-13 17:29:33 -04:00
Joey Hess
bc7d431a6a
status 2018-08-13 16:37:23 -04:00
Joey Hess
c9866c7612
devblog 2018-08-13 16:19:15 -04:00
Joey Hess
f1dfed4d5a
response 2018-08-13 12:44:34 -04:00
webanck
cd62ab20a3 Added a comment: Similar issue again 2018-08-13 14:18:17 +00:00
webanck
55d7660576 removed 2018-08-13 14:16:09 +00:00
webanck
3829f2de16 Added a comment: Similar issue again 2018-08-13 14:11:48 +00:00
Mara
a2bb955467 Added a comment: Also with embedcreds=yes 2018-08-13 12:28:10 +00:00
Mara
3e8eadade4 2018-08-13 10:46:08 +00:00
duncan_bayne
6ce59ccfe5 2018-08-12 06:19:36 +00:00
duncan_bayne
b5910dac68 2018-08-12 06:18:36 +00:00
duncan_bayne
874dd3febf 2018-08-12 06:17:56 +00:00
jarno
159154d2b2 2018-08-11 12:26:00 +00:00
Joey Hess
d0dfee1519
Merge branch 'master' of ssh://git-annex.branchable.com 2018-08-10 16:17:29 -04:00
Joey Hess
29a3174f11
devblog 2018-08-10 16:17:05 -04:00
yarikoptic
b47fef55f0 Added a comment: my 1c 2018-08-10 19:17:17 +00:00
Joey Hess
816e0e356b
devblog 2018-08-09 18:35:28 -04:00
Joey Hess
147a793f4b
one way to use this 2018-08-09 18:22:21 -04:00
Joey Hess
a96972015d
massive v6 add speed/memory improvement
v6 add: Take advantage of improved SIGPIPE handler in git 2.5 to speed up
the clean filter by not reading the file content from the pipe. This also
avoids git buffering the whole file content in memory.

When built with an older git, still consumes stdin. If built with a newer
git and used with an older one, it breaks, but that's acceptable --
checking the git version every time would make repeated smudge runs slow.

This commit was supported by the NSF-funded DataLad project.
2018-08-09 18:17:46 -04:00
Joey Hess
74551a430a
soften 2018-08-09 16:03:43 -04:00
Joey Hess
6de8bbaad9
followup 2018-08-09 16:01:48 -04:00
Joey Hess
63a81cd20a
response 2018-08-09 15:49:36 -04:00
Joey Hess
1f8e6d7e3a
hm 2018-08-09 15:44:01 -04:00
Joey Hess
0e04d9cfab
Merge branch 'master' of ssh://git-annex.branchable.com 2018-08-09 15:07:17 -04:00
Joey Hess
7b9762b6af
document converting from git to annex and back 2018-08-09 15:06:51 -04:00
yarikoptic
a18b9cb8be Added a comment: may be one more gitattribute to instruct on either conversion is desired for the file? 2018-08-09 18:59:56 +00:00
Joey Hess
adcca7ecd7
one more thought 2018-08-09 13:14:52 -04:00
Joey Hess
5b56ca32c6
typo 2018-08-09 13:10:31 -04:00
Joey Hess
42fcf59921
rethink and Q 2018-08-09 13:06:25 -04:00
Joey Hess
78ade9e6cf
a plan 2018-08-09 12:38:00 -04:00
Joey Hess
6eeeb2eea8
same root cause for this too 2018-08-09 12:15:38 -04:00
Joey Hess
29a52e1518
understand now 2018-08-09 12:08:30 -04:00
Joey Hess
7ed987f6ca
and 2018-08-09 12:05:51 -04:00
Joey Hess
fc2ffb414f
followup 2018-08-09 12:04:07 -04:00
yarikoptic
2a7484bdc6 initial report about failure to commit 2018-08-08 20:07:27 +00:00
Joey Hess
12460fcea6
make --batch honor matching options
When --batch is used with matching options like --in, --metadata, etc, only
operate on the provided files when they match those options. Otherwise, a
blank line is output in the batch protocol.

Affected commands: find, add, whereis, drop, copy, move, get

In the case of find, the documentation for --batch already said it honored
the matching options. The docs for the rest didn't, but it makes sense to
have them honor them. While this is a behavior change, why specify the
matching options with --batch if you didn't want them to apply?

Note that the batch output for all of the affected commands could
already output a blank line in other cases, so batch users should
already be prepared to deal with it.

git-annex metadata didn't seem worth making support the matching options,
since all it does is output metadata or set metadata, the use cases for
using it in combination with the martching options seem small. Made it
refuse to run when they're combined, leaving open the possibility for later
support if a use case develops.

This commit was sponsored by Brett Eisenberg on Patreon.
2018-08-08 12:07:06 -04:00
Joey Hess
54eb80e945
Merge branch 'master' of ssh://git-annex.branchable.com 2018-08-08 11:06:08 -04:00
Joey Hess
ec18b84bdb
moreinfo this 2018-08-08 11:05:05 -04:00
Joey Hess
0fd093485d
close 2018-08-08 11:03:43 -04:00
CandyAngel
56bce6a5cc 2018-08-07 23:18:09 +00:00
Joey Hess
93a0cee3ef
cleanupc 2018-08-07 16:29:21 -04:00
Joey Hess
3b2a3e8557
add news item for git-annex 6.20180807 2018-08-07 16:22:42 -04:00
https://openid-provider.appspot.com/iakornfeld
48d11a5dfb Added a comment: Sorry 2018-08-07 14:12:20 +00:00
https://openid-provider.appspot.com/iakornfeld
797c3e14c4 removed 2018-08-07 14:08:12 +00:00
https://openid-provider.appspot.com/iakornfeld
0f70ee06db Added a comment: Yes 2018-08-07 14:07:56 +00:00
https://openid-provider.appspot.com/iakornfeld
1b80f89ef4 Added a comment: Yes 2018-08-07 14:07:38 +00:00
Joey Hess
4c918437ab
Fix git-annex branch data loss that could occur after git-annex forget --drop-dead
Added getStaged, to get the versions of git-annex branch files staged in its
index, and use during transitions so the result of merging sibling branches
is used.

The catFileStop in performTransitionsLocked is absolutely necessary,
without that the bug still occurred, because git cat-file was already
running and was looking at the old index file.

Note that getLocal still has cat-file look at the git-annex branch, not the
index. It might be faster if it looked at the index, but probably only
marginally so, and I've not benchmarked it to see if it's faster at all. I
didn't want to change unrelated behavior as part of this bug fix. And as
the need for catFileStop shows, using the index file has added
complications.

Anyway, it still seems fine for getLocal to look at the git-annex branch,
because normally the index file is updated just before the git-annex branch
is committed, and so they'll contain the same information. It's only during
a transition that the two diverge.

This commit was sponsored by Paul Walmsley in honor of Mark Phillips.
2018-08-06 17:36:30 -04:00
mbekkema97@66b135681014f005a3a14c4011d148fcb6655f81
2010e98ebf 2018-08-06 18:18:31 +00:00
Joey Hess
38ddd6072d
addurl: Include filename in --json-progress output when known. 2018-08-06 12:53:44 -04:00
Joey Hess
e5a8d5effa
close 2018-08-06 12:50:29 -04:00
Joey Hess
5c5259db7c
followup 2018-08-06 11:56:55 -04:00
Joey Hess
634aefebd4
comment 2018-08-06 11:54:03 -04:00
Joey Hess
df72b2584a
already implmeneted 2018-08-06 11:29:22 -04:00
Joey Hess
efd5c2704e
update 2018-08-05 21:37:16 -04:00
yarikoptic
c3f366448a initial expression of the desire 2018-08-04 03:20:48 +00:00
yarikoptic
0e93af4e9c Added a comment: no generic solution is possible in indirect mode BUT still would be nice to have a 99% solution 2018-08-03 21:51:22 +00:00
Joey Hess
f42e5a9c03
devblog 2018-08-03 15:04:15 -04:00
Joey Hess
4709f290cf
response 2018-08-03 14:29:03 -04:00
Joey Hess
3f00fc5f26
probably pebak 2018-08-03 14:23:46 -04:00
Joey Hess
5ff0fa81bc
why? 2018-08-03 14:19:20 -04:00
Joey Hess
c5d93650c9
prevent fetch/merge/push to cache 2018-08-03 14:10:05 -04:00
Joey Hess
cf42e0c7b4
Merge branch 'master' of ssh://git-annex.branchable.com 2018-08-03 13:55:54 -04:00
Joey Hess
dcabec9be1
response 2018-08-03 13:55:32 -04:00
yarikoptic
214a6b7742 Added a comment: could we just make it "avoidable"? 2018-08-03 17:54:01 +00:00
Joey Hess
91e769814e
response 2018-08-03 13:39:13 -04:00
Joey Hess
a85595bda8
close 2018-08-03 13:35:05 -04:00
Joey Hess
38190c6ca2
response 2018-08-03 13:28:11 -04:00
Joey Hess
1a02fc1159
Fix wrong sorting of remotes when using -J
It was sorting by uuid, rather than cost!

Avoid future bugs of this kind by changing the Ord to primarily compare
by cost, with uuid only used when the cost is the same.

This commit was supported by the NSF-funded DataLad project.
2018-08-03 13:10:50 -04:00
AlexP
178ab762eb Added a comment: any update on this? 2018-08-02 20:01:57 +00:00
yarikoptic
8de71a743c Added a comment: re: annex merge cache 2018-08-02 18:49:51 +00:00
Joey Hess
03ac0978d6
response 2018-08-02 14:16:18 -04:00
Joey Hess
ae11394efa
added annex.commitmessage
Added annex.commitmessage config that can specify a commit message for the
git-annex branch instead of the usual "update".

This commit was supported by the NSF-funded DataLad project.
2018-08-02 14:06:06 -04:00
Joey Hess
5c3864b326
Merge branch 'master' of ssh://git-annex.branchable.com 2018-08-02 13:48:13 -04:00
Joey Hess
50620efe85
thought 2018-08-02 13:47:50 -04:00
Joey Hess
18aa931a44
followup 2018-08-02 13:43:44 -04:00
yarikoptic
5d56429a1e Added a comment: re: annex merge cache 2018-08-02 17:35:22 +00:00
Joey Hess
769a3b71a7
Merge branch 'master' of ssh://git-annex.branchable.com 2018-08-02 13:33:18 -04:00
Joey Hess
35dbf231d8
response 2018-08-02 13:31:22 -04:00
yarikoptic
62b5f4e90f Added a comment: re: parallel and costs 2018-08-02 17:28:46 +00:00
Joey Hess
184cae8172
followup 2018-08-02 13:15:59 -04:00
yarikoptic
05e573e672 Added a comment: could be taken as a feature! but also annex should avoid merging cache git-annex 2018-08-02 14:30:51 +00:00
yarikoptic
7d74517717 Added a comment: is it "safe" to tune? 2018-08-02 13:53:04 +00:00
yarikoptic
7281099574 Added a comment: is not going from cache with parallel get e.g. -J 2 2018-08-02 13:33:09 +00:00
webanck
1481e1e885 2018-08-02 09:50:21 +00:00
webanck
2db36d414d 2018-08-02 09:44:12 +00:00
Joey Hess
b8780da832
hint about when requesttyle=path is needed 2018-08-01 16:06:34 -04:00
Joey Hess
5b1c1b1490
Merge branch 'master' of ssh://git-annex.branchable.com 2018-08-01 15:34:53 -04:00
Joey Hess
6e6c9cc6d3
Added --accessedwithin matching option.
Useful for dropping old objects from cache repositories.

But also, quite a genrally useful thing to have..

Rather than imitiating find's -atime and other options, all of which are
pretty horrible to use, I made this match files accessed within a time
period, using the same duration format used by git-annex schedule and
--limit-time

In passing, changed the --limit-time option parser to parse the
duration, instead of having it later throw an error.

This commit was supported by the NSF-funded DataLad project.
2018-08-01 15:34:03 -04:00
ggres
fa1704f656 2018-08-01 18:59:10 +00:00
ggres
5089f0497f 2018-08-01 18:57:54 +00:00
Joey Hess
fd5a392006
cache remotes via annex-speculate-present
Added remote.name.annex-speculate-present config that can be used to
make cache remotes.

Implemented it in Remote.keyPossibilities, which is used by the
get/move/copy/mirror commands, and nothing else. This way, things like
whereis will not show content that's speculatively present.

The assistant and sync --content were not using Remote.keyPossibilities,
and were changed to use it.

The efficiency hit should be small; Remote.keyPossibilities is only
used before transferring a file, which is the expensive operation.
And, it's only doing one lookup of the remoteList and a very cheap
filter over it.

Note that, git-annex still updates the location log when copying content
to a remote with annex-speculate-present set. In this case, the location
tracking will indicate that content is present in the remote. This may
not be wanted for caches, or may not be a real problem for them. TBD.

This commit was supported by the NSF-funded DataLad project.
2018-08-01 14:28:05 -04:00
msloco@dab095e2e54192078b3eedcd000f7d838a169f5b
2ca412754a Added a comment: samee here 2018-07-31 22:21:48 +00:00
Joey Hess
2884637cab
S3: Support credential-less download from remotes configured with public=yes exporttree=yes.
This commit was supported by the NSF-funded DataLad project.
2018-07-31 16:32:43 -04:00
Joey Hess
903b10e2b2
add todo 2018-07-31 13:05:04 -04:00
yarikoptic
a206f933fe Added a comment 2018-07-31 14:27:17 +00:00
yarikoptic
03294b113c blindly adding yarikoptic to authors to show since I think I've not annotated all of the issues properly 2018-07-31 14:23:04 +00:00
yarikoptic
c70e757f2b Added a comment: size 2018-07-31 14:19:16 +00:00
lykos@d125a37d89b1cfac20829f12911656c40cb70018
fbcf90d6d1 Add AnnexRemote to the list 2018-07-31 13:44:27 +00:00
lykos@d125a37d89b1cfac20829f12911656c40cb70018
8238e53527 Add note regarding python lib 2018-07-31 13:41:28 +00:00
webanck
eef25c7a17 rename bugs/git-annex-export_treeish_subdir_path_does_not_exist.mdwn to bugs/git-annex-export_treeish_subdir_path_does_not_exist__91____91__done__93____93__.mdwn 2018-07-31 12:43:51 +00:00
webanck
5b3008b317 Added a comment 2018-07-31 12:41:44 +00:00