Joey Hess
cb631ce518
whereis: Prints the urls of files that the web special remote knows about.
2012-02-14 03:49:48 -04:00
Joey Hess
9030f68452
When checking that an url has a key, verify that the Content-Length, if available, matches the size of the key.
...
If there's no Content-Length, or the key has no size, this check is not
done, but it should happen most of the time, and protect against web
content that has changed.
2012-02-10 19:23:41 -04:00
Joey Hess
61dbad505d
fsck --from remote --fast
...
Avoids expensive file transfers, at the expense of checking file size
and/or contents.
Required some reworking of the remote code.
2012-01-20 13:23:11 -04:00
Joey Hess
06b0cb6224
add tmp flag parameter to retrieveKeyFile
2012-01-19 16:07:36 -04:00
Joey Hess
aa0882691b
Added remote.name.annex-web-options configuration setting, which can be used to provide parameters to whichever of wget or curl git-annex uses (depends on which is available, but most of their important options suitable for use here are the same).
2012-01-02 14:20:20 -04:00
Joey Hess
4a02c2ea62
type alias cleanup
2011-12-31 04:11:58 -04:00
Joey Hess
8a33573caf
better filtering out of special remotes
2011-12-31 03:27:37 -04:00
Joey Hess
02f1bd2bf4
split more stuff out of Git.hs
2011-12-14 15:43:13 -04:00
Joey Hess
13fff71f20
split out three modules from Git
...
Constructors and configuration make sense in separate modules.
A separate Git.Types is needed to avoid cycles.
2011-12-13 15:06:49 -04:00
Joey Hess
64672c6262
refactor
2011-12-03 09:10:23 -04:00
Joey Hess
e19dc85547
factor out untilTrue
2011-12-02 16:12:31 -04:00
Joey Hess
d3e1a3619f
safer inannex checking
...
git-annex-shell inannex now returns always 0, 1, or 100 (the last when
it's unclear if content is currently in the index due to it currently being
moved or dropped).
(Actual locking code still not yet written.)
2011-11-09 18:33:15 -04:00
Joey Hess
bf460a0a98
reorder repo parameters last
...
Many functions took the repo as their first parameter. Changing it
consistently to be the last parameter allows doing some useful things with
currying, that reduce boilerplate.
In particular, g <- gitRepo is almost never needed now, instead
use inRepo to run an IO action in the repo, and fromRepo to get
a value from the repo.
This also provides more opportunities to use monadic and applicative
combinators.
2011-11-08 16:27:20 -04:00
Joey Hess
23f2a12816
broke up Utility
2011-10-16 00:50:12 -04:00
Joey Hess
91366c896d
clean Annex stuff out of Utility/
2011-10-16 00:04:26 -04:00
Joey Hess
ee9af605bc
break out non-log stuff to separate module
2011-10-15 17:47:03 -04:00
Joey Hess
ec169f84b1
migrate: Copy url logs for keys when migrating.
2011-10-15 16:36:56 -04:00
Joey Hess
b4015064e1
break web log handling into a separate module
2011-10-15 16:25:51 -04:00
Joey Hess
1a29b5b52e
reorganize log modules
...
no code changes
2011-10-15 16:21:08 -04:00
Joey Hess
9fa9214106
A remote can have a annexUrl configured, that is used by git-annex instead of its usual url. (Similar to pushUrl.)
2011-10-14 18:18:28 -04:00
Joey Hess
6a6ea06cee
rename
2011-10-05 16:02:51 -04:00
Joey Hess
cfe21e85e7
rename
2011-10-04 00:59:08 -04:00
Joey Hess
8ef2095fa0
factor out common imports
...
no code changes
2011-10-03 23:29:48 -04:00
Joey Hess
dd463a3100
rework annex-ignore handling
...
Only one place need to filter the list of remotes for ignored remotes:
keyPossibilities. Make the full list available to everything else.
This allows getting rid of the special case handing for --from and --to
to make ignored remotes not be ignored with those options.
2011-09-18 20:11:39 -04:00
Joey Hess
999d5df90b
factor out firstM and anyM
...
Control.Monad.Loops has these, but has no Debian package yet.
2011-08-28 15:46:49 -04:00
Joey Hess
f82da1d9dc
show a message if asked to get something from the web that is not there
2011-08-27 07:08:15 -04:00
Joey Hess
737b5d14c9
moved files around
2011-08-20 16:11:42 -04:00
Joey Hess
4545a0e78c
split out generic url stuff into a helper library from Remote.Web
2011-08-16 20:49:44 -04:00
Joey Hess
dd8e649f49
fix file name for web remote log files
...
The key name was not being sufficiently escaped, although it didn't break
anything due to luck. Switch to properly escaped key names for the log
filename, with a fallback to the buggy old name.
2011-08-06 14:45:58 -04:00
Joey Hess
00153eed48
unify elipsis handling
...
And add a simple dots-based progress display, currently only used in v2
upgrade.
2011-07-19 14:07:23 -04:00
Joey Hess
6c396a256c
finished hlint pass
2011-07-15 12:47:14 -04:00
Joey Hess
5c69ac14eb
Drop the dependency on the haskell curl bindings, use regular haskell HTTP.
2011-07-04 19:33:11 -04:00
Joey Hess
e6b9539a65
make curl follow redirs
2011-07-01 21:52:27 -04:00
Joey Hess
ace9de37e8
download urls via tmp file, and support resuming
2011-07-01 18:59:40 -04:00
Joey Hess
79016c197c
add hashing to web log files
2011-07-01 17:23:01 -04:00
Joey Hess
6bddebdb79
add the addurl command
2011-07-01 17:15:46 -04:00
Joey Hess
cdbcd6f495
add web special remote
...
Generalized LocationLog to PresenceLog, and use a presence log to record
urls for the web special remote.
2011-07-01 15:30:42 -04:00