Commit graph

18922 commits

Author SHA1 Message Date
Joey Hess
ff192ace2f detect wicd network disconnection events 2014-04-12 18:36:48 -04:00
Joey Hess
bb44df206d NetWatcher: detect when networkmanager has lost network connection
This is a better approach to finding both when NM has lost a network
connection, and when a new network connection is made by NM.

Tested with network-manager 0.9.8.8.

This commit was sponsored by Cedric Staub.
2014-04-12 17:58:19 -04:00
Joey Hess
a33b30d0c4 remotedaemon: When network connection is lost, close all cached ssh connections.
This commit was sponsored by Cedric Staub.
2014-04-12 16:32:59 -04:00
Joey Hess
15917ec1a8 sync, assistant, remotedaemon: Use ssh connection caching for git pushes and pulls.
For sync, saves 1 ssh connection per remote. For remotedaemon, the same
ssh connection that is already open to run git-annex-shell notifychanges
is reused to pull from the remote.

Only potential problem is that this also enables connection caching
when the assistant syncs with a ssh remote. Including the sync it does
when a network connection has just come up. In that case, cached ssh
connections are likely to be stale, and so using them would hang.
Until I'm sure such problems have been dealt with, this commit needs to
stay on the remotecontrol branch, and not be merged to master.

This commit was sponsored by Alexandre Dupas.
2014-04-12 15:59:34 -04:00
2601:0:b100:7c0::1
1b3a48f992 poll vote (DCIM directory (photos and videos only)) 2014-04-12 19:38:11 +00:00
Joey Hess
96ce2812e0 Merge branch 'master' into remotecontrol
Conflicts:
	debian/changelog
2014-04-12 14:20:41 -04:00
Joey Hess
8c15face0e add new test 2014-04-12 14:19:56 -04:00
Joey Hess
09fa46f94f Merge branch 'master' of ssh://git-annex.branchable.com 2014-04-12 13:31:45 -04:00
Joey Hess
9fff243ff2
wrote test case; found bugs in date math; fixed and simplified using Data.Time.Calendar 2014-04-12 13:29:35 -04:00
Joey Hess
b815988d16
Improve handling on monthly/yearly scheduling.
Avoid back-to-back runs.
2014-04-12 12:58:32 -04:00
David Triendl
ea5166ea96 Add doc/bugs/Drop_--from_always_trusts_local_repository.mdwn 2014-04-12 06:46:08 +02:00
https://openid.stackexchange.com/user/e65e6d0e-58ba-41de-84cc-1f2ba54cf574
0f609b1f7f removed 2014-04-12 03:51:56 +00:00
Joey Hess
d955cfe78a Improve handling on monthly/yearly scheduling.
Code was still buggy, it turns out (though the recursion checker caught
it). In the case of (Schedule (Monthly Nothing) AnyTime), where the last
run was on yyyy-12-31, it looped forever.

Also, the handling of (Schedule (Yearly Nothing) AnyTime) was wacky where
the last run was yyyy-12-31. It would suggest a window starting on the 3rd
for the next run (because 31 mod 28 is 3).

I think that originally I was wanted to avoid running on 01-01 if it had
just run on 12-31. But the code didn't accomplish this, and it's not
necessary anyway. This is supposed to calculate the next window meeting the
schedule, and for (Schedule (Monthly Nothing), the window starts at 01-01
and runs through 01-31. If that causes two back-to-back runs, well the next
one will not be until 02-01 at the earliest.

Also, back-to-back runs can be avoided, if desired, by using Divisible 2.
2014-04-11 21:42:43 -04:00
Joey Hess
740788ccb6 Merge branch 'master' of ssh://git-annex.branchable.com 2014-04-11 19:02:28 -04:00
Joey Hess
0ad2314e89
devblog 2014-04-11 19:01:01 -04:00
Joey Hess
8d45a82988 use ustar format and omit filnames with colons. new hackage requirements
The tarball on hackage will no longer correspond to the git tag. Oh well.
2014-04-11 18:45:46 -04:00
Joey Hess
13902f50d0 Merge branch 'master' of ssh://git-annex.branchable.com 2014-04-11 18:31:35 -04:00
Joey Hess
da795e0843 add news item for git-annex 5.20140412 2014-04-11 18:29:48 -04:00
Joey Hess
2503f433dc prep release 2014-04-11 18:10:10 -04:00
Joey Hess
e26dead493 guard against any remaining infinite recursion bugs; throw error if no candidate cn be found in next hundred years
Note that the exception thrown is not visible in the webapp currently
because it crashes one of Cronner's 2 worker threads, which is never
checked.
2014-04-11 18:08:46 -04:00
Joey Hess
5592fc16d3 Record git-annex (5.20140412) in archive suite sid 2014-04-11 17:14:38 -04:00
Joey Hess
2a82adc417 git-annex (5.20140412) unstable; urgency=high
* Last release didn't quite fix the high cpu issue in all cases, this should.

# imported from the archive
2014-04-11 17:14:38 -04:00
Joey Hess
9e16171c7f Last release didn't quite fix the high cpu issue in all cases, this should.
This is supposed to look for a day past the last day it ran, not a month
past.

Seems to work, at least in anarcat's test case.
2014-04-11 17:14:19 -04:00
Joey Hess
7da3e2b908 Merge branch 'master' of ssh://git-annex.branchable.com 2014-04-11 15:58:33 -04:00
Joey Hess
5006ade11d add news item for git-annex 5.20140411 2014-04-11 15:45:44 -04:00
Joey Hess
9d8e15bd37 Merge branch 'master' of ssh://git-annex.branchable.com 2014-04-11 15:31:02 -04:00
Joey Hess
91fa570aad more prep 2014-04-11 15:10:19 -04:00
Joey Hess
bdb81af880
prep release 2014-04-11 15:01:10 -04:00
Joey Hess
e0ca99b480
rename confusingly named "day" 2014-04-11 14:38:23 -04:00
Joey Hess
2aab47ea3e Merge branch 'master' of ssh://git-annex.branchable.com 2014-04-11 14:35:27 -04:00
Joey Hess
c678798a5c assistant: Fix high CPU usage triggered when a monthly fsck is scheduled, and the last time the job ran was a day of the month > 12. This caused a runaway loop. Thanks to Anarcat for his assistance, and to Maximiliano Curia for identifying the cause of this bug. 2014-04-11 14:34:09 -04:00
Joey Hess
80b41c5a6b Merge branch 'master' of ssh://git-annex.branchable.com 2014-04-11 13:31:20 -04:00
http://joeyh.name/
66e81aacfd Added a comment 2014-04-11 16:32:51 +00:00
Joey Hess
fd49e7f1b1 Merge branch 'master' of ssh://git-annex.branchable.com 2014-04-11 12:30:38 -04:00
Joey Hess
5ef1a160dd typo 2014-04-11 12:12:34 -04:00
Joey Hess
b8e43fda1e
note that GIT_ANNEX_SHELL_READONLY does not imply GIT_ANNEX_SHELL_LIMITED 2014-04-11 12:08:31 -04:00
Joey Hess
a67c16a81e Merge branch 'master' of ssh://git-annex.branchable.com 2014-04-11 12:04:10 -04:00
Joey Hess
8ca44c25e6
update for g3 2014-04-11 12:03:40 -04:00
Joey Hess
e31c5a1648 Merge branch 'master' of ssh://git-annex.branchable.com 2014-04-11 10:31:22 -04:00
https://www.google.com/accounts/o8/id?id=AItOawn6-8_3tbusU0Myh97-GGuGUY9bBoBP3bQ
60e10298c4 2014-04-11 13:43:55 +00:00
Joey Hess
eb9e7c44ee Merge branch 'master' of ssh://git-annex.branchable.com 2014-04-10 16:32:20 -04:00
Joey Hess
a6df4698a3 Fix rsync progress parsing in locales that use comma in number display. Closes: #744148 2014-04-10 15:36:51 -04:00
Joey Hess
a40bf97d8c Merge branch 'master' of ssh://git-annex.branchable.com 2014-04-10 13:32:11 -04:00
Joey Hess
aba17a402e
update 2014-04-10 13:27:47 -04:00
Joey Hess
67e280baa9
nuke tmp dir so things don't linger between builds 2014-04-10 13:08:07 -04:00
Joey Hess
27cad7f808 note automatic upgrade issue 2014-04-10 13:05:11 -04:00
Joey Hess
407d60ca5d Remove wget from OSX dmg, due to issues with cert paths that broke git-annex automatic upgrading. Instead, curl is used, unless the OSX system has wget installed, which will then be used. 2014-04-10 12:54:58 -04:00
Joey Hess
fdd189626e Merge branch 'master' of ssh://git-annex.branchable.com 2014-04-10 11:47:38 -04:00
Joey Hess
9a1ce2b0cd fix title (#150) 2014-04-10 11:27:21 -04:00
Joey Hess
6b43d8432c Merge branch 'master' of ssh://git-annex.branchable.com 2014-04-10 06:32:29 -04:00