Joey Hess
f5f8879471
map: Write map.dot to .git/annex, which avoids watch trying to annex it.
2012-07-17 12:27:06 -04:00
Joey Hess
46d1f5a9d0
fix test suite build
2012-06-21 13:04:24 -04:00
Joey Hess
f8d422fe24
update test suite
2012-06-05 19:54:44 -04:00
Joey Hess
a1885bd116
make GIT_DIR, GIT_WORK_TREE absolute
...
GIT_DIR is set to something relative, like ".git" in the pre-commit hook.
But internally all the directories are assumed to be absolute.
2012-05-18 18:32:19 -04:00
Joey Hess
eb6cb1b87f
Add support for core.worktree, and fix support for GIT_WORK_TREE and GIT_DIR.
...
The environment needs to override git-config. Changed when git config is
read, and avoid rereading it once it's been read.
chdir for both worktree settings.
2012-05-18 18:20:53 -04:00
Joey Hess
657d09d499
fix build
2012-05-05 20:11:08 -04:00
Joey Hess
bf70bbdbfc
fix test suite build
2012-04-30 13:59:05 -04:00
Joey Hess
b927dfd970
remove addurl test
...
addurl --fast used to avoid network, but it always uses it now, getting at
least size. Thus not appropriate for test suite without a lot of work.
2012-03-06 13:21:46 -04:00
Joey Hess
51338486dc
Fix a bug in symlink calculation code, that triggered in rare cases where an annexed file is in a subdirectory that nearly matched to the .git/annex/object/xx/yy subdirectories.
...
This is a straight up pure-code stinker. The relative path calculation
looked for common subdirectories in the two paths, but failed to stop
after the paths diverged. When a later pair of subdirectories were the
same, the resulting relative path was wrong.
Added regression test for this.
2012-03-05 12:42:52 -04:00
Joey Hess
e5fee3f352
Fix test suite to not require a unicode locale.
...
Without a unicode locale, it will fail to print a unicode filename to
console, and fails.
2012-02-29 02:32:05 -04:00
Joey Hess
ac5cff3668
quiet expected compiler warning
2012-02-20 11:08:50 -04:00
Joey Hess
97db2f945a
exception update in test too
2012-02-03 16:57:07 -04:00
Joey Hess
6c64a214fa
add a test case for adding a file with a unicode filename
...
This fails with ghc 4.7.
2012-01-31 16:34:04 -04:00
Joey Hess
1ae780ee79
git-annex, git-union-merge: Support GIT_DIR and GIT_WORK_TREE.
...
Note that GIT_WORK_TREE cannot influence GIT_DIR; that is necessary for
git-fake-bare and vcsh type things to work.
2012-01-13 12:52:09 -04:00
Joey Hess
07cacbeee9
break module dependancy loop
...
A PITA but worth it to clean up the trust configuration code.
2012-01-10 13:32:38 -04:00
Joey Hess
9ffd97442b
don't use GPG_AGENT_INFO to force batch mode in test suite
...
Fails with gpg 2. Instead, use a different environment variable.
The clean fix would instead be to add an annex.gpg-options configuration.
But, that would be rather a lot of work and it's unlikely it would be
useful for much else.
2012-01-09 18:19:29 -04:00
Joey Hess
60c1aeeb6f
Fix overbroad gpg --no-tty fix from last release.
...
Only set --no-tty when GPG_AGENT_INFO is set and batch mode is used.
In the test suite, set GPG_AGENT_INFO to /dev/null to avoid the test suite
relying on /dev/tty.
2012-01-07 12:38:08 -04:00
Joey Hess
4a02c2ea62
type alias cleanup
2011-12-31 04:11:58 -04:00
Joey Hess
cba3ce08df
handle C-style escapes in Format
...
I was happily able to repurpose some code from Git.Filename to handle this.
I remember writing that code... a whole afternoon at a coffee shop, after
which I felt I'd struggled with Haskell and git, and sorta lost, in needing
to write this nasty peice of code. But was also pleased at the use of a
pair of functions and quickcheck that allowed me to get it 100% right.
So, turns out I not only got it right, but the code wasn't as special-purpose
as I'd feared. Yay!
2011-12-23 01:05:16 -04:00
Joey Hess
58956c2a90
cleanup
2011-12-22 15:38:15 -04:00
Joey Hess
6bffe509d7
Add --include, which is the same as --not --exclude.
2011-12-22 14:00:17 -04:00
Joey Hess
a76b13b848
test fsck in bare repos (75%)
2011-12-21 14:20:41 -04:00
Joey Hess
57235315c4
improve
2011-12-21 14:10:36 -04:00
Joey Hess
8cdcd78b21
test bup special remote (74% coverage)
2011-12-21 13:50:33 -04:00
Joey Hess
c61f3d7b7b
test coverage improvements
2011-12-21 12:46:14 -04:00
Joey Hess
82a145df91
test encrypted special remote
...
This involved adding a test harness to run gpg with a dummy key, and lots
of fun.
2011-12-20 23:24:06 -04:00
Joey Hess
cc88abd0ad
Test suite improvements. Current top-level test coverage: 68%
...
Been higher before, but a lot of new code has been added.
2011-12-20 17:31:25 -04:00
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