Joey Hess
1c28237e0c
map: --fast disables use of dot to display map
...
Generally useful, and allows the test suite to test it.
2011-12-20 16:42:35 -04:00
Joey Hess
9308a60bb2
add basic tests for some of the newer commands
...
For most this just makes sure they run successfully, and improves test
coverage statistics; it's hard to test the output of eg, find and status.
2011-12-20 16:26:39 -04:00
Joey Hess
7dff46eeec
cleanup backend used when reversing migration
...
WORM is no longer the starting backend, so let's really reverse, getting
back to SHA256.
2011-12-20 16:06:15 -04:00
Joey Hess
9f65410fd8
run annex monad in quiet mode when testing
...
This cleans up the merging messages.
2011-12-20 16:03:14 -04:00
Joey Hess
c4c8c80f49
factor out -q
2011-12-20 15:48:25 -04:00
Joey Hess
b6664d5c94
add tests of directory and rsync special remotes
2011-12-20 15:24:58 -04:00
Joey Hess
4eec36c816
added a test of the hook special remote
2011-12-20 15:13:36 -04:00
Joey Hess
02f1bd2bf4
split more stuff out of Git.hs
2011-12-14 15:43:13 -04:00
Joey Hess
9db8ec210f
split out two more Git modules
2011-12-13 15:24:23 -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
d64132a43a
hslint
2011-12-09 01:57:13 -04:00
Joey Hess
9a67f9cb8d
use Control.Exception's brackets
2011-11-26 12:08:54 -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
3d3e1c4c25
better command name
2011-10-31 15:18:41 -04:00
Joey Hess
380839299e
The fromkey command now takes the key as its first parameter. The --key option is no longer used.
2011-10-31 12:56:07 -04:00
Joey Hess
1826b3bd67
cleanup
2011-10-27 18:01:52 -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
3e0d2a0803
add timestamp to uuid.log
...
* New or changed repository descriptions in uuid.log now have a timestamp,
which is used to ensure the newest description is used when the uuid.log
has been merged.
* Note that older versions of git-annex will display the timestamp as part
of the repository description, which is ugly but otherwise harmless.
2011-10-06 15:31:25 -04:00
Joey Hess
8ef2095fa0
factor out common imports
...
no code changes
2011-10-03 23:29:48 -04:00
Joey Hess
4050c24d7b
ssh
2011-09-29 21:11:48 -04:00
Joey Hess
26bb45d12a
update test suite for smarter unused
2011-09-28 17:48:11 -04:00
Joey Hess
5ae270001c
fix
2011-09-28 15:17:45 -04:00
Joey Hess
984c9fc052
remove optimize subcommand; use --auto instead
...
get, drop: Added --auto option, which decides whether to get/drop content
as needed to work toward the configured numcopies.
The problem with bundling it up in optimize was that I then found I wanted
to run an optmize that did not drop files, only got them. Considered adding
a --only-get switch to it, but that seemed wrong. Instead, let's make
existing subcommands optionally smarter.
Note that the only actual difference between drop and drop --auto is that
the latter does not even try to drop a file if it knows of not enough
copies, and does not print any error messages about files it was unable to
drop.
It might be nice to make get avoid asking git for attributes when not in
auto mode. For now it always asks for attributes.
2011-09-15 13:30:04 -04:00
Joey Hess
949b3f69d0
optimize: A new subcommand that either gets or drops file content as needed to work toward meeting the configured numcopies setting.
...
This is currently rather simplistic, though still useful.
In the future, it could become smarter about what content is stored where,
etc.
2011-09-14 13:47:22 -04:00
Joey Hess
20259c2955
Set EMAIL when running test suite so that git does not need to be configured first. Closes : #638998
2011-08-23 13:41:32 -04:00
Joey Hess
203148363f
split groups of related functions out of Utility
2011-08-22 16:14:12 -04:00
Joey Hess
e784757376
hlint tweaks
...
Did all sources except Remotes/* and Command/*
2011-07-15 03:12:05 -04:00
Joey Hess
7919de73af
Bugfix: Make add ../ work.
...
The complication of check-attr returning absolute paths that have to be
converted back to relative paths..
2011-07-10 13:52:53 -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
f6063a094e
renamed GitRepo to Git
...
It was always imported qualified as Git anyway
2011-06-30 13:21:39 -04:00
Joey Hess
4c8770c646
reove 2 tests that no longer make sense (state is not autocommitted)
2011-06-22 19:52:13 -04:00
Joey Hess
d70e9a945b
remove some tests that no longer make sense
2011-06-22 17:15:33 -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
66f5b390fe
fix test suite
2011-06-13 21:51:52 -04:00
Joey Hess
703c437bd9
rename modules for data types into Types/ directory
2011-06-01 21:56:04 -04:00
Joey Hess
93c5fb5da7
support remote config values with spaces and other characters
2011-05-16 13:07:56 -04:00
Joey Hess
b400984ddf
fixup
2011-05-15 01:33:25 -04:00
Joey Hess
dbdcb67f79
fix test suite when run by root
2011-04-26 20:26:25 -04:00
Joey Hess
948691e893
exit nonzero when there were failure, not just errors
...
ya, I need a test suite for my test suite
2011-04-26 20:26:19 -04:00
Joey Hess
3d3abab679
move quickcheck Arbitrary declaration into test suite
...
So git-annex can build w/o quickcheck installed.
2011-04-25 15:28:41 -04:00
Joey Hess
e433c6f0bb
generalized relPathDirTo functions
2011-04-25 13:36:39 -04:00
Joey Hess
b72de39ba4
add test to ensure hmac remains stable
2011-04-21 16:56:24 -04:00
Joey Hess
50cfcdf54b
make encrypted remotes have slightly higher costs
2011-04-17 01:13:21 -04:00
Joey Hess
688e94fd30
convert test to Remote
2011-03-27 16:58:28 -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
49b7f59183
test suite passes again
...
doesn't test remote functionality.. but that may be working too now
2011-03-15 22:53:14 -04:00
Joey Hess
4594bd51c1
rename file
2011-03-15 22:04:50 -04:00