Commit graph

8401 commits

Author SHA1 Message Date
pz63@5ea0a27986d782e467e1ebef6eb31ba440cc58d5
3bfc7eee11 2018-09-14 11:38:34 +00:00
git-annex.branchable.com@79d6855760f61f7fbe0a401b45d8c791ef49b500
81e76d815c 2018-09-13 04:24:03 +00:00
Joey Hess
0bbc47d567
response 2018-09-12 14:19:48 -04:00
Joey Hess
2743224658
change v6 git-annex add of staged unmodified unlocked file
v6: When a file is unlocked but has not been modified, and the unlocking is
only staged, git-annex add did not lock it. Now it will, for consistency
with how modified files are handled and with v5.

Note the removal of the sameInodeCache check. Otherwise it would see
that the unmodified file is unmodified and stop there. That check seems to have
been copied from the direct mode branch. But, direct mode had a specific
reason to check for unmodified content, that does not apply to v6.

The second pass means there is potential for a race, eg the unlocked
file could be modified in between the first and second passes.
No problem with that, since both passes do the same thing.

This commit was sponsored by Jake Vosloo on Patreon.
2018-09-12 14:00:05 -04:00
yarikoptic
a099fd4184 initial report on whereis kaboom 2018-09-12 14:02:48 +00:00
ewen
00d4a58ff7 Added a comment: LC_TIME 2018-09-11 23:52:23 +00:00
ewen
3b8cbe55b2 Added a comment: LC_TIME 2018-09-11 22:23:49 +00:00
ewen
7bf914a22e Added a comment: timer_create 2018-09-11 21:37:25 +00:00
Joey Hess
fdbdf64d87
fix reversions due to undocumented and buggy git behavior
* Don't use GIT_PREFIX when GIT_WORK_TREE=. because it seems git
  does not intend GIT_WORK_TREE to be relative to GIT_PREFIX in that
  case, despite GIT_WORK_TREE=.. being relative to GIT_PREFIX.
* Don't use GIT_PREFIX to fix up a relative GIT_DIR, because
  git 2.11 sets GIT_PREFIX set to a path it's not relative to.
  and apparently GIT_DIR is never relative to GIT_PREFIX.

Commit e50ed4ba48 led us down this path
by working around a git bug by relying on the barely documented GIT_PREFIX.

This commit was sponsored by Trenton Cronholm on Patreon.
2018-09-11 15:54:21 -04:00
Joey Hess
30b1e7cb34
followup 2018-09-11 14:42:37 -04:00
Joey Hess
48205ff829
followup 2018-09-11 14:31:49 -04:00
Joey Hess
88e5292417
followup 2018-09-11 14:06:46 -04:00
Joey Hess
1e71dbf812
Merge branch 'master' of ssh://git-annex.branchable.com 2018-09-11 13:30:01 -04:00
Joey Hess
a352368f8e
followup 2018-09-11 13:27:51 -04:00
yarikoptic
9632da100c initial report on problem accessing previously exported public bucket 2018-09-11 17:07:16 +00:00
kyle
69448f2a40 fixed 2018-09-10 18:30:46 +00:00
kyle
25fecfd50f Added a comment: fixed 2018-09-10 18:27:49 +00:00
ewen
224e71e7d0 Added a comment: x86-64 build working on Synology NAS (with work around) 2018-09-08 02:03:21 +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
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
Joey Hess
69907e397f
revert a few problem areas of git-annex.cabal patch 2018-09-05 11:47:00 -04:00
fft
165783827b 2018-09-05 12:18:54 +00:00
fft
f760555c57 2018-09-05 12:13:48 +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
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
kyle
5567496518 'annex add' locks unmodified file in V5 but not V6 2018-08-30 19:07:03 +00: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
a3fa9ea0b5
followup 2018-08-30 11:08:46 -04:00
kyle@9c8cc228b2254d7f0f8c42be54a2ac1b81edf416
92be1cc8c7 2018-08-29 21:20:26 +00: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
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
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
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