Commit graph

38480 commits

Author SHA1 Message Date
wting
87c135c259 Added a comment 2020-11-19 03:12:37 +00:00
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234
db624d8a1e Added a comment 2020-11-18 19:28:51 +00:00
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234
c2dc234e0d removed 2020-11-18 19:26:33 +00:00
Joey Hess
64ed58c17e
Merge branch 'master' of ssh://git-annex.branchable.com 2020-11-18 15:17:58 -04:00
Joey Hess
d8b7f6721f
Merge branch 'ssh-hates-me' 2020-11-18 15:17:05 -04:00
Joey Hess
043eee0cb5
update 2020-11-18 15:16:49 -04:00
Joey Hess
682829c200
avoid throwing exception when the handle is closed
The handle could get closed eg, by cleanupProcess being called,
which forces the process to exit and closes all its handles.

At this point, the test case in https://git-annex.branchable.com/bugs/Buggy_external_special_remote_stalls_after_7245a9e/
is fixed.
2020-11-18 15:10:35 -04:00
Joey Hess
b021e2322f
avoid crash on EOF at end 2020-11-18 15:03:30 -04:00
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234
612dfa9580 removed 2020-11-18 18:59:49 +00:00
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234
13026257be Added a comment: how to convert existing repo to new backend? 2020-11-18 18:54:31 +00:00
Joey Hess
e6d741af79
finish conversion to hGetLineUntilExitOrEOF
started in aafae46bcb
2020-11-18 14:54:02 -04:00
Joey Hess
7ec22489da
remove bench test 2020-11-18 14:49:56 -04:00
Joey Hess
b483be8548
newline mode (mis)handling for windows
Unfortunately, there is no hGetNewLineMode. This seems like an oversight
that should be fixed in ghc, but for now, I paper over it with a windows
hack.
2020-11-18 14:48:50 -04:00
Joey Hess
787b39c7c1
working hGetLineUntilExitOrEOF
The problem with the old version seemed to be that hWaitForInput blocks
rather than timing out when being run concurrently with hGetLine on the
same handle.

This passes the bench test, and also works when run concurrently on
different handles.
2020-11-18 14:21:47 -04:00
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234
3aaae3097b removed 2020-11-18 17:59:54 +00:00
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234
55aa45794a 2020-11-18 17:54:49 +00:00
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234
a6e7890f1d 2020-11-18 17:52:22 +00:00
eric.w@eee65cd362d995ced72640c7cfae388ae93a4234
f0c19c4c95 2020-11-18 17:51:31 +00:00
Joey Hess
9c448c877b
Merge branch 'master' of ssh://git-annex.branchable.com 2020-11-18 12:53:41 -04:00
Joey Hess
24f7d0af3d
followup 2020-11-18 12:52:14 -04:00
Joey Hess
9af0000e0f
bench test for hGetLineUntilExitOrEOF
This seems to show that hWaitForInput does not seem to behave as
documented. It does not time out, so blocks forever in this situation.
This is with a 0 timeout and with larger timeouts. Unsure why, it looked
like it should work.
2020-11-18 12:23:15 -04:00
kyle
774a02909d Added a comment 2020-11-18 15:30:07 +00:00
https://ro-che.info/
b3ac1653b2 2020-11-18 13:46:25 +00:00
alex@3cb1cc0c80ffb2137f36155c5caa581605c3767b
a7254774b3 2020-11-18 12:09:08 +00:00
alex@3cb1cc0c80ffb2137f36155c5caa581605c3767b
5ecf4152c2 2020-11-18 12:08:08 +00:00
gueux
7dc9cf9d69 Added a comment 2020-11-18 10:54:56 +00:00
lucas.gautheron@09f1983993dfb0907d02ba268b3ca672f1dc3eea
0e1fcd94ba 2020-11-18 09:04:56 +00:00
Joey Hess
aafae46bcb
WIP
for https://git-annex.branchable.com/bugs/Buggy_external_special_remote_stalls_after_7245a9e/
2020-11-17 17:31:08 -04:00
Joey Hess
3dda21d292
comment 2020-11-17 17:30:43 -04:00
Joey Hess
6b63278f31
init: When writing hook scripts, set all execute bits, not only the user execute bit 2020-11-17 13:31:12 -04:00
Joey Hess
fbbc42a9d4
comment 2020-11-17 13:20:54 -04:00
Joey Hess
77b3f002cd
fix typo closing 2020-11-17 12:00:03 -04:00
Joey Hess
e776efcbec
Merge branch 'master' of ssh://git-annex.branchable.com 2020-11-17 11:59:06 -04:00
Joey Hess
bce8865824
fix build on windows 2020-11-17 11:58:45 -04:00
gueux
f41026f5a9 2020-11-17 11:21:56 +00:00
Joey Hess
1be38362aa
retitle 2020-11-16 15:17:48 -04:00
Joey Hess
9a06a63e3c
Merge branch 'master' of ssh://git-annex.branchable.com 2020-11-16 15:15:07 -04:00
Joey Hess
631c8d3e5b
avoid redundant adjusted branch update in sync
sync still does update it if the config would otherwise not, since it
already did.
2020-11-16 15:13:48 -04:00
Joey Hess
805af01562
bug fix
really innefficient but it does solve dropping
2020-11-16 14:57:51 -04:00
Joey Hess
557a6e11a6
avoid spurious blank line when updating adjusted branch
git checkout run with --quiet should have no output
2020-11-16 14:41:38 -04:00
Joey Hess
0896038ba7
annex.adjustedbranchrefresh
Added annex.adjustedbranchrefresh git config to update adjusted branches
set up by git-annex adjust --unlock-present/--hide-missing.

Note, in a few cases, I was not able to make the adjusted branch
be updated in calls to moveAnnex, because information about what
file corresponds to a key is not available. They are:

* If two files point to one file, then eg, `git annex get foo` will
  update the branch to unlock foo, but will not unlock bar, because it
  does not know about it. Might be fixable by making `git annex get
  bar` do something besides skipping bar?
* git-annex-shell recvkey likewise (so sends over ssh from old versions
  of git-annex)
* git-annex setkey
* git-annex transferkey if the user does not use --file
* git-annex multicast sends keys with no associated file info

Doing a single full refresh at the end, after any incremental refresh,
will deal with those edge cases.
2020-11-16 14:27:28 -04:00
kyle
4bc564cada Added a comment 2020-11-16 18:22:05 +00:00
yarikoptic
474dfa26f2 Added a comment 2020-11-16 17:44:33 +00:00
Joey Hess
af6af35228
split out Annex.Content.Presence
This will let a module that Annex.Content imports use inAnnex.
Unsure yet if I will need that, but this split still seems to make
sense, and Annex.Content was way too long so splitting it is good.
2020-11-16 11:24:57 -04:00
Joey Hess
0121f5f6d3
support parsing numeric git configs as bool
I'm not sure if git documents it aside from 0 and 1, but any integer
can be interpreted as a bool by it. Doing the same in git-annex is good
for consistency. Also, I am planning a config that starts out as a
numeric range, but will later transition to a simple bool (hopefully),
which this interpretation supports well.
2020-11-16 10:09:25 -04:00
Joey Hess
26cf26caca
Merge branch 'master' into symlink-missing 2020-11-16 10:03:12 -04:00
Joey Hess
5a8d01f63e
examinekey: Added a "file" format variable
For consistency with find, and for easier scripting.
2020-11-16 09:59:11 -04:00
Joey Hess
21ab496f6b
fix build 2020-11-16 09:56:03 -04:00
Joey Hess
17c92fcae5
add news item for git-annex 8.20201116 2020-11-16 09:39:06 -04:00
Joey Hess
864af53a2d
releasing package git-annex version 8.20201116 2020-11-16 09:38:29 -04:00