Commit graph

20964 commits

Author SHA1 Message Date
http://joeyh.name/
6f24dc28ab Added a comment 2014-08-12 17:26:46 +00:00
Joey Hess
26ceb09794 Merge branch 'master' of ssh://git-annex.branchable.com 2014-08-12 13:24:02 -04:00
Joey Hess
d8be828734 direct: Fix ugly warning messages.
replaceFileOr was broken and ran the rollback action always.
Luckily, for replaceFile, the rollback action was safe to run, since it
just nuked a temp file that had already been moved into place.

However, when `git annex direct` used replaeFileOr, its rollback printed a
scary message:

  /home/joey/tmp/rrrr/.git/annex/misctmp/tmp32268: rename: does not exist (No such file or directory)

There was actually no bad result though.
2014-08-12 13:00:08 -04:00
Joey Hess
7285896996 make windows depend on new enough unix-compat to get inode numbers 2014-08-12 12:30:40 -04:00
Joey Hess
9193d6e6bd fix build on windows with unix-compat-0.4.1.3
FileID type changed, needs Arbitrary instance.

On the plus side, getFileStatus on Windows now actually gets file id's,
not always 0, so direct mode is safer there now.
2014-08-11 17:25:31 -04:00
https://launchpad.net/~rorymcc
be6f7b4567 Added a comment 2014-08-11 18:41:05 +00:00
https://launchpad.net/~rorymcc
7a7e2ef606 Added a comment 2014-08-11 18:37:47 +00:00
sts
7e78aff15c Added a comment 2014-08-11 11:39:44 +00:00
sts
1cb4fb012e 2014-08-11 08:29:24 +00:00
https://id.koumbit.net/anarcat
a40f1552c2 i believe i provided moreinto in the comments now 2014-08-11 01:58:50 +00:00
https://id.koumbit.net/anarcat
1824d56383 Added a comment: more info 2014-08-11 01:55:28 +00:00
Joey Hess
6bfc3cf3be re-evil-splicved new version of DAV 2014-08-10 20:01:54 -04:00
Joey Hess
3f661d54d8 Merge branch 'master' of ssh://git-annex.branchable.com 2014-08-10 19:58:20 -04:00
Joey Hess
800f8f1028 giving up on windows autobuilder until its HP can be upgraded 2014-08-10 19:56:55 -04:00
https://id.koumbit.net/anarcat
6332d7161e icing 2014-08-10 23:56:48 +00:00
https://id.koumbit.net/anarcat
34f5beaaef always set the playcount to some numeric value, 0 if we fail 2014-08-10 23:48:06 +00:00
Joey Hess
b3a9d41910 fix build 2014-08-10 19:44:09 -04:00
Joey Hess
b011439d2f Merge branch 'master' of ssh://git-annex.branchable.com 2014-08-10 19:41:41 -04:00
Joey Hess
fb66ee8c85 qualify catch and try
got a build failure on android due to there being a Prelude.catch
2014-08-10 19:40:21 -04:00
https://id.koumbit.net/anarcat
5141e53ca2 rename tips/dumb_metadata_extraction_from_xbmc/git-annex-xbmc-playcount.pl.pl to tips/dumb_metadata_extraction_from_xbmc/git-annex-xbmc-playcount.pl 2014-08-10 23:35:43 +00:00
https://id.koumbit.net/anarcat
fd2546dafb trying script upload from the web interface, neat 2014-08-10 23:33:36 +00:00
https://id.koumbit.net/anarcat
ae30cba464 this is degenerate, but should work 2014-08-10 23:32:47 +00:00
Joey Hess
29aa5e82dc trying to work around a dep problem on windows 2014-08-10 19:26:03 -04:00
Joey Hess
f709c786d9 stop nuking cabal 2014-08-10 16:23:25 -04:00
Joey Hess
d8240ca1c1 nuke cabal on windows, so it will build new DAV 2014-08-10 16:06:20 -04:00
Joey Hess
c27d9f909b fix windows build 2014-08-10 15:30:55 -04:00
Joey Hess
54b74ef8db Merge branch 'master' of ssh://git-annex.branchable.com 2014-08-10 15:20:03 -04:00
Joey Hess
dc2155c2b8 devblog 2014-08-10 15:17:59 -04:00
Joey Hess
c78a7aa1e1 unlock of not present file should still be a failure, just not a crash 2014-08-10 15:16:24 -04:00
Joey Hess
6adbd50cd9 testremote: Add testing of behavior when remote is not available
Added a mkUnavailable method, which a Remote can use to generate a version
of itself that is not available. Implemented for several, but not yet all
remotes.

This allows testing that checkPresent properly throws an exceptions when
it cannot check if a key is present or not. It also allows testing that the
other methods don't throw exceptions in these circumstances.

This immediately found several bugs, which this commit also fixes!

* git remotes using ssh accidentially had checkPresent return
  an exception, rather than throwing it
* The chunking code accidentially returned False rather than
  propigating an exception when there were no chunks and
  checkPresent threw an exception for the non-chunked key.

This commit was sponsored by Carlo Matteo Capocasa.
2014-08-10 15:02:59 -04:00
http://svario.it/gioele
0da82b1d68 Explain the problem better 2014-08-10 15:57:33 +00:00
Joey Hess
2fd9518f72 unlock: Better error handling; continue past files that are not available or cannot be unlocked due to disk space, and try all specified files. 2014-08-09 11:09:54 -04:00
Joey Hess
f69a9274f9 avoid printing really ugly webdav exceptions
The responseheaders can sometimes include the entire input request,
which is several pages of garbage.
2014-08-09 01:38:13 -04:00
Joey Hess
81e1b2078e devblog 2014-08-08 23:25:48 -04:00
Joey Hess
1412056b20 Merge branch 'newchunks' 2014-08-08 23:25:38 -04:00
Joey Hess
4f1ba9a23d fix checkPresent error handling for non-present local git repos
guardUsable r (error "foo") *returned* an error, rather than throwing it
2014-08-08 19:18:08 -04:00
Joey Hess
1dd3232e8e check for 200 response 2014-08-08 17:17:36 -04:00
Joey Hess
1f8c170c95 http-conduit not used for dav 2014-08-08 17:17:23 -04:00
Joey Hess
0260ee43e6 fix removeKey when not present 2014-08-08 14:57:05 -04:00
Joey Hess
6cb9e5c32f show missing url= parameter error sooner 2014-08-08 14:19:08 -04:00
Joey Hess
ec11e0b89a fix build warning 2014-08-08 13:55:09 -04:00
Joey Hess
2d344edf60 increave dav build-dep 2014-08-08 13:47:44 -04:00
Joey Hess
c3f8512475 WebDAV: Avoid buffering whole file in memory when downloading.
httpBodyRetriever will later also be used by S3

This commit was sponsored by Ethan Aubin.
2014-08-08 13:40:55 -04:00
Joey Hess
fc17cf852e further break out legacy chunking code 2014-08-08 13:17:24 -04:00
Joey Hess
871b6cb886 DAV version turns out to be 1.0. 2014-08-08 12:50:51 -04:00
https://www.google.com/accounts/o8/id?id=AItOawmvzzyDA8uXFz8yokeCrepbh8PwWe_WrjE
d8a865a397 Added a comment: a more recent fork 2014-08-08 16:03:24 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmvzzyDA8uXFz8yokeCrepbh8PwWe_WrjE
5c24841d37 Added a comment: current status? 2014-08-08 16:00:18 +00:00
Joey Hess
d3d30d2bf3 need transformers for Utility.Exception 2014-08-07 22:11:28 -04:00
Joey Hess
c784ef4586 unify exception handling into Utility.Exception
Removed old extensible-exceptions, only needed for very old ghc.

Made webdav use Utility.Exception, to work after some changes in DAV's
exception handling.

Removed Annex.Exception. Mostly this was trivial, but note that
tryAnnex is replaced with tryNonAsync and catchAnnex replaced with
catchNonAsync. In theory that could be a behavior change, since the former
caught all exceptions, and the latter don't catch async exceptions.

However, in practice, nothing in the Annex monad uses async exceptions.
Grepping for throwTo and killThread only find stuff in the assistant,
which does not seem related.

Command.Add.undo is changed to accept a SomeException, and things
that use it for rollback now catch non-async exceptions, rather than
only IOExceptions.
2014-08-07 22:03:29 -04:00
Joey Hess
8e3d62dd5d generalized using the extensions package 2014-08-07 21:01:07 -04:00