Joey Hess
c371c40a88
Don't list S3 as a remote type when built without S3 support.
2012-01-05 23:11:07 -04:00
Joey Hess
4a02c2ea62
type alias cleanup
2011-12-31 04:11:58 -04:00
Joey Hess
015a497914
avoid syncing remotes configured annex-ignore, unless explicitly specified
2011-12-31 01:42:42 -04:00
Joey Hess
dba8fc8a1c
export remoteList
2011-12-30 19:10:54 -04:00
Joey Hess
1940e52793
skip repos without a description set when --in="" is specified
...
Picking one of probably several remotes with no description set was not
useful behavior.
2011-12-23 14:08:04 -04:00
Joey Hess
95d2391f58
more partial function removal
...
Left a few Prelude.head's in where it was checked not null and too hard to
remove, etc.
2011-12-15 18:19:36 -04:00
Joey Hess
c50a5fbeb4
status: Include all special remotes in the list of repositories.
...
Special remotes do not always have a description listed in uuid.log,
and such ones were not listed before.
2011-11-18 13:22:48 -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
56b8194470
cleanup
2011-11-09 01:33:20 -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
b11a63a860
clean up read/show abuse
...
Avoid ever using read to parse a non-haskell formatted input string.
show :: Key is arguably still show abuse, but displaying Keys as filenames
is just too useful to give up.
2011-11-08 00:17:54 -04:00
Joey Hess
3c263cc9ea
fix
2011-11-07 16:34:12 -04:00
Joey Hess
63a292324d
add a UUID type
...
Should have done this a long time ago.
2011-11-07 15:59:16 -04:00
Joey Hess
6c31e3a8c3
drop --from is now supported to remove file content from a remote.
2011-10-28 17:26:38 -04:00
Joey Hess
b3e660504f
avoid showing parens for empty descriptions
2011-10-27 14:55:06 -04:00
Joey Hess
ee9af605bc
break out non-log stuff to separate module
2011-10-15 17:47:03 -04:00
Joey Hess
1a29b5b52e
reorganize log modules
...
no code changes
2011-10-15 16:21:08 -04:00
Joey Hess
b505ba83e8
minor syntax changes
2011-10-11 14:43:45 -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
1e6b7e901d
less space
2011-09-30 16:21:28 -04:00
Joey Hess
29032cb70e
When displaying a list of repositories, show git remote names in addition to their descriptions.
2011-09-30 15:02:29 -04:00
Joey Hess
03e54680ff
really fix referring to remotes by uuid
2011-09-30 02:51:05 -04:00
Joey Hess
a7e7dda55a
Fix referring to remotes by uuid.
...
I think that I broke this in some fairly recent refactoring.
2011-09-30 02:23:24 -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
3623d831d1
refactor
2011-09-06 17:45:47 -04:00
Joey Hess
d1dd40c49b
avoid showing json lists of remotes when not in json mode
2011-09-02 16:44:04 -04:00
Joey Hess
5bc32c7f34
add json formatted list of remotes
...
Wherever a list of remotes is shown, --json now enables a json formatted
list.
2011-09-01 16:02:01 -04:00
Joey Hess
678726c10c
code simplification thanks to applicative functors
2011-08-25 01:27:19 -04:00
Joey Hess
e784757376
hlint tweaks
...
Did all sources except Remotes/* and Command/*
2011-07-15 03:12:05 -04:00
Joey Hess
b5733069db
tweak
2011-07-06 16:06:10 -04:00
Joey Hess
6040d8aed1
factor out RemoteLog
2011-07-05 20:16:57 -04:00
Joey Hess
9f1577f746
remove unused backend machinery
...
The only remaining vestiage of backends is different types of keys. These
are still called "backends", mostly to avoid needing to change user interface
and configuration. But everything to do with storing keys in different
backends was gone; instead different types of remotes are used.
In the refactoring, lots of code was moved out of odd corners like
Backend.File, to closer to where it's used, like Command.Drop and
Command.Fsck. Quite a lot of dead code was removed. Several data structures
became simpler, which may result in better runtime efficiency. There should
be no user-visible changes.
2011-07-05 19:57: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
Joey Hess
c5531046bc
refactor
2011-06-23 15:30:04 -04:00
Joey Hess
7ee636f6dd
avoid unnecessary read of trust.log
2011-06-23 13:39:04 -04:00
Joey Hess
4c4ebf2d75
store trust.log and remote.log in the git-annex branch
...
.. and I think that's everything that will use the branch
2011-06-22 17:08:51 -04:00
Joey Hess
1870186632
fixed logFile
2011-06-22 16:17:16 -04:00
Joey Hess
d3f0106f2e
move LocationLog into Annex monad from IO
...
It will need to run in Annex so it can use Branch
2011-06-22 14:27:50 -04:00
Joey Hess
f547277b75
Allow --trust etc to specify a repository by name, for temporarily trusting repositories that are not configured remotes.
2011-06-13 22:19:44 -04:00
Joey Hess
f2cc87860c
refactor
2011-06-02 02:33:31 -04:00
Joey Hess
703c437bd9
rename modules for data types into Types/ directory
2011-06-01 21:56:04 -04:00
Joey Hess
971ab27e78
better types allowed breaking module dep loop
2011-06-01 19:11:27 -04:00
Joey Hess
a8fb97d2ce
Add --trust, --untrust, and --semitrust options.
2011-06-01 17:57:31 -04:00
Joey Hess
3ab15b9f4f
releasing version 0.20110516
2011-05-16 15:01:05 -04:00
Joey Hess
93c5fb5da7
support remote config values with spaces and other characters
2011-05-16 13:07:56 -04:00
Joey Hess
6aab88fa25
more monadic operator use
2011-05-15 15:27:49 -04:00
Joey Hess
3ab3f41aea
hook special remote implemented, and tested
2011-04-28 17:21:45 -04:00
Joey Hess
e68f128a9b
rsync special remote
...
Fully tested and working, including resuming and encryption. (Though not
resuming when sending *with* encryption; gpg doesn't produce identical
output each time.)
Uses same layout as the directory special remote and the .git/annex/objects/
directory.
2011-04-27 20:23:09 -04:00
Joey Hess
1e84dab4c8
RemoteConfig type
2011-04-15 15:09:36 -04:00
Joey Hess
44c65f40b7
bup is now supported as a special type of remote.
2011-04-08 16:44:43 -04:00
Joey Hess
0c73c08c1c
cost bugfixes
2011-03-30 15:15:46 -04:00
Joey Hess
619f07ee6a
boilerplate reduction
2011-03-30 14:00:54 -04:00
Joey Hess
a47ed922e1
add Remote.Directory
2011-03-30 13:24:36 -04:00
Joey Hess
8f9951369d
refactor
2011-03-29 18:28:37 -04:00
Joey Hess
0782d70063
copy --to S3 works
2011-03-29 17:57:20 -04:00
Joey Hess
72f94cc42e
progress
2011-03-29 17:20:22 -04:00
Joey Hess
475f707361
initremote now creates buckets
2011-03-29 16:21:21 -04:00
Joey Hess
0a4c610b4f
initremote works
2011-03-29 14:55:59 -04:00
Joey Hess
05751d55cd
clean up remote.log handling
2011-03-29 14:10:12 -04:00
Joey Hess
a3b6586902
update
2011-03-28 23:51:07 -04:00
Joey Hess
b1db436816
started on initremote
2011-03-28 23:22:31 -04:00
Joey Hess
65b72604d7
skeleton of S3 remote
2011-03-27 22:00:44 -04:00
Joey Hess
6b5918c295
some reorg and further remote generalization
2011-03-27 21:43:25 -04:00
Joey Hess
28bf28a73c
rename
2011-03-27 19:23:00 -04:00
Joey Hess
45dbfbd02f
remove debug
2011-03-27 17:26:46 -04:00
Joey Hess
48418cb92b
reexport RemoteClass from Remote for cleanliness
2011-03-27 17:12:32 -04:00
Joey Hess
30f427700f
converted several commands to use Remote
...
only move and map still to convert
2011-03-27 16:55:43 -04:00
Joey Hess
3470260a85
clean up remote list generation to only run once
2011-03-27 16:24:46 -04:00
Joey Hess
f30320aa75
add remotes slot to Annex
...
This required parameterizing the type for Remote, to avoid a cycle.
2011-03-27 16:17:56 -04:00
Joey Hess
b40f253d6e
start of generalizing remotes
...
Goal is to support multiple different types of remotes, some of which
are not git repositories. To that end, added a Remote class, and moved
git remote specific code into Remote.GitRemote.
Remotes.hs is still present as some code has not been converted to use the
new Remote class yet.
2011-03-27 16:04:25 -04:00