Commit graph

29916 commits

Author SHA1 Message Date
Joey Hess
bcab98d299
Merge branch 'master' of ssh://git-annex.branchable.com 2017-03-08 14:50:06 -04:00
Joey Hess
0534152685
get -J: Improve distribution of jobs amoung remotes when there are more jobs than remotes.
It was distributing jobs to remotes that were not being used by any other
job. But, suppose that there are only 2 remotes, and -J10. In such a case,
the first 2 downloads would be distributed amoung the 2 remotes, but
the other 8 would all go to remote #1. Improved by keeping a counter
of how many jobs are assigned to a remote, and prefer remotes with fewer
jobs.

Note use of Data.Map.Strict to avoid blowing up space. I kept the
bang-patterns as-is, although probably not needed with Data.Map.Strict.

This commit was sponsored by Jack Hill on Patreon.
2017-03-08 14:49:30 -04:00
Joey Hess
fde5dbff2b
document get -J's behavior of spreading load amoung same-cost remotes
I implemented this last fall, but forgot to document it anywhere.
2017-03-08 14:26:29 -04:00
jason.dixon.email@aa0e536a2ec2877d6f666108dbbc6e39bbe87ac0
17932e07e1 Added a comment: Perhaps relevant 2017-03-08 17:31:30 +00:00
archimedes
fe2d33dbbd 2017-03-08 13:30:55 +00:00
jason.dixon.email@aa0e536a2ec2877d6f666108dbbc6e39bbe87ac0
1b3c15147f 2017-03-08 12:51:05 +00:00
jason.dixon.email@aa0e536a2ec2877d6f666108dbbc6e39bbe87ac0
83defc762f Added a comment: Oh and to be slightly helpful 2017-03-08 08:57:08 +00:00
jason.dixon.email@aa0e536a2ec2877d6f666108dbbc6e39bbe87ac0
98647f5959 Added a comment: Same issue with rclone on windows. 2017-03-08 08:55:49 +00:00
jason.dixon.email@aa0e536a2ec2877d6f666108dbbc6e39bbe87ac0
24ade8a25b Added a comment: Still seems useful 2017-03-07 10:19:41 +00:00
jason.dixon.email@aa0e536a2ec2877d6f666108dbbc6e39bbe87ac0
41b85ad1f4 Added a comment: I hope the option to show missing files remains. 2017-03-07 06:30:37 +00:00
Joey Hess
384027bc79
comment 2017-03-06 13:35:25 -04:00
Joey Hess
af2a6d578e
assistant: Add 1/200th second delay between checking each file in the full transfer scan, to avoid using too much CPU.
The slowdown is not going to be large in typical small-ish repos.
And it does not seem to matter if the assistant reacts a little bit slower
in situations involving the expensive scan, since:

a) Those situations typically involve getting back in sync after something
   has changed on a remote, often after a disconnect of some duration.
   So taking a few seconds more is not noticable.
b) If the scan finds things that it needs to do, it will start
   blocking anyway after 10 transfers are queued (due to use of
   queueTransferWhenSmall). So, only the speed of finding the first 10
   transfers will be impacted by this change.

This commit was sponsored by Jochen Bartl on Patreon.
2017-03-06 13:32:47 -04:00
Joey Hess
113b48ba19
comment 2017-03-06 12:56:08 -04:00
Joey Hess
ce91e4102e
response
This commit was sponsored by Thom May on Patreon.
2017-03-06 12:24:00 -04:00
Joey Hess
1e7c68500e
Merge branch 'master' of ssh://git-annex.branchable.com 2017-03-06 11:45:47 -04:00
benjamin.poldrack@d09ccff6d42dd20277610b59867cf7462927b8e3
0b18df0b28 Added a comment 2017-03-06 09:03:56 +00:00
Marco
fee30ecf6b 2017-03-04 12:55:17 +00:00
Joey Hess
eb2db2b176
comment 2017-03-03 13:59:49 -04:00
mbroadhead
624f3e1548 Added a comment 2017-03-03 16:59:52 +00:00
jason.dixon.email@aa0e536a2ec2877d6f666108dbbc6e39bbe87ac0
86508537c5 Added a comment: Does this not work counter to locking / unlocking files? 2017-03-03 13:40:06 +00:00
xloem
afc65319af removed 2017-03-03 12:32:35 +00:00
xloem
52545b73be Added a comment: Non-conforming blobs 2017-03-03 12:30:35 +00:00
xloem
b7eff4a34d Added a comment: Non-conforming blobs 2017-03-03 12:29:52 +00:00
mbroadhead
9b5763527b Added a comment 2017-03-02 22:48:09 +00:00
Joey Hess
9467cfa9bc
Merge branch 'master' of ssh://git-annex.branchable.com 2017-03-02 17:41:16 -04:00
Joey Hess
11d3219985
Linux standalone builds put the bundled ssh last in PATH, so any system ssh will be preferred over it.
This commit was sponsored by Denis Dzyubenko on Patreon.
2017-03-02 17:40:40 -04:00
kevang
f107487c62 2017-03-02 21:38:25 +00:00
Joey Hess
d797f750e4
comment 2017-03-02 17:28:43 -04:00
Joey Hess
1e31a7c93a
show how this is not specific to git-annex at all 2017-03-02 17:24:49 -04:00
Joey Hess
551848babd
Merge branch 'master' of ssh://git-annex.branchable.com 2017-03-02 17:19:44 -04:00
Joey Hess
0157cd9331
update 2017-03-02 16:39:31 -04:00
mbroadhead
b35a50ccab 2017-03-02 18:51:38 +00:00
Joey Hess
874232f1a6
status: Propigate nonzero exit code from git status. 2017-03-02 14:09:42 -04:00
Joey Hess
e4bcfcb618
comment 2017-03-02 14:04:15 -04:00
Joey Hess
1e9e96fa40
followup 2017-03-02 14:00:55 -04:00
Joey Hess
1cd5fc302c
fix format 2017-03-02 13:49:13 -04:00
Joey Hess
701006bd83
clarification 2017-03-02 13:28:31 -04:00
Joey Hess
fe28cbcd9e
comment 2017-03-02 13:23:27 -04:00
Joey Hess
8c1eda75b5
title 2017-03-02 13:20:17 -04:00
Joey Hess
995f58a04c
Merge branch 'master' of ssh://git-annex.branchable.com 2017-03-02 13:19:13 -04:00
Joey Hess
e83a2a2691
comment 2017-03-02 13:18:37 -04:00
Joey Hess
34db79e1a5
Bugfix: Passing a command a filename that does not exist sometimes did not display an error, when a path to a directory was also passed.
It was relying on segmentPaths to work correctly, so when it didn't,
sometimes the file that did not exist got matched up with a non-null
list of results. Fixed by always checking if each parameter exists.

There are two reason segmentPaths might not work correctly.

For one, it assumes that when the original list of paths
has more than 100 paths, it's not worth paying the CPU cost to
preserve input orders.

And then, it fails when a directory such as "." or ".." or
/path/to/repo is in the input list, and the list of found paths
does not start with that same thing. It should probably not be using
dirContains, but something else.

But, it's not clear how to handle this fully. Consider
when [".", "subdir"] has been expanded by git ls-files to
["subdir/1", "subdir/2"]
-- Both of the inputs contained those results, so there's
no one right answer for segmentPaths. All these would be equally valid:
	[["subdir/1", "subdir/2"], []]
	[[], ["subdir/1", "subdir/2"]]
	[["subdir/1"], [""subdir/2"]]

So I've not tried to improve segmentPaths.
2017-03-02 13:06:20 -04:00
git-annex@31849d241f10c295b30a9707352ae5c7d743adb7
2468e69354 Added a comment 2017-03-02 16:16:05 +00:00
git-annex@31849d241f10c295b30a9707352ae5c7d743adb7
273decc078 removed 2017-03-02 16:15:44 +00:00
git-annex@31849d241f10c295b30a9707352ae5c7d743adb7
fcdc72f807 Added a comment 2017-03-02 16:14:52 +00:00
Michel
6e6a90805d 2017-03-02 09:20:15 +00:00
Joey Hess
e3a03af24e
github mirror has been removed due to their horrible new anti-free-software TOS 2017-03-01 13:28:02 -04:00
Joey Hess
463dda3879
add news item for git-annex 6.20170301.1 2017-03-01 12:51:18 -04:00
Joey Hess
a9e1e17d40
releasing package git-annex version 6.20170301.1 2017-03-01 12:46:26 -04:00
Joey Hess
5383340691
improve layout 2017-03-01 12:46:01 -04:00