Joey Hess
acde7a1736
improve GitRepos functions for pulling apart URL to repo
2011-03-05 15:13:16 -04:00
Joey Hess
14e0d01b58
remove debugging printf
2011-03-03 21:19:01 -04:00
Joey Hess
42259eee92
support git funky remote syntaxes
...
* Look for dir.git directories the same as git does.
* Support remote urls specified as relative paths.
* Support non-ssh remote paths that contain tilde expansions.
2011-03-03 21:02:29 -04:00
Joey Hess
b27b0d5cd4
remove unused code
2011-03-03 17:35:44 -04:00
Joey Hess
e49e6a403b
avoid failing if a local repo is not currently available
...
The added check if a repo is bare means its config needs to be read, but
in this case it cannot be. That means that a repo currently not available
is assumed to be non-bare.
2011-03-03 17:33:15 -04:00
Joey Hess
d651d4985b
some initial support for local bare repos
...
This relies on git-annex's behavior of reading the config of local repos.
That allows repoIsLocalBare to examine the git config for core.bare.
Hopefully, gitAnnexLocation, gitAnnexDir, and gitAnnexObjectDir
are only used on local repos. But, I have not audited fully, since
they're probably not (see for example copyToRemote). And so,
the functions fall back to their old non-bare-aware behavior for
non-local repos.
2011-03-03 14:51:57 -04:00
Joey Hess
4cd96ad2db
rename
2011-02-28 16:25:31 -04:00
Joey Hess
fcdc4797a9
use ShellParam type
...
So, I have a type checked safe handling of filenames starting with dashes,
throughout the code.
2011-02-28 16:18:55 -04:00
Joey Hess
c319a336a3
Fix test suite to reap zombies.
...
I had not taken into account that the code was written to run git and leave
zombies, for performance/laziness reasons, when I wrote the test suite.
So rather than the typical 1 zombie process that git-annex develops, test
developed dozens. Caused problems on system with low process limits.
Added a reap function to GitRepo, that waits for any zombie child processes.
2011-02-13 00:50:09 -04:00
Joey Hess
ef2d4f650e
fix absrepo data loss
...
it was dropping the config map for the repos it changed
2011-02-04 01:56:45 -04:00
Joey Hess
17829be0fd
map improvements
...
added uuid.log repos
group repos by host
avoid displaying most urls
display remote names on edges
still some bugs
2011-02-03 22:20:55 -04:00
Joey Hess
14bc885de9
more accessor functions and better bad url handling
2011-02-03 18:47:14 -04:00
Joey Hess
0e7984a793
add check for unclean tree
2011-02-01 22:02:19 -04:00
Joey Hess
4f9336bb60
idiom
2011-01-27 17:58:30 -04:00
Joey Hess
a8ce30401d
add checks that location log files are committed
...
currently failing for move --to
2011-01-11 16:00:40 -04:00
Joey Hess
c2b13a88bf
use concat
2011-01-09 18:23:58 -04:00
Joey Hess
14fe13dc2b
support ssh urls containing "~", and relative user:path
2010-12-31 21:22:03 -04:00
Joey Hess
eac433a84a
use git-annex-shell configlist
2010-12-31 15:46:33 -04:00
Joey Hess
022e0c7751
Support scp-style urls for remotes (host:path).
2010-12-28 13:48:11 -04:00
Joey Hess
346c7a0257
Avoid multiple calls to git ls-files when passed eg, "*".
2010-12-23 21:58:58 -04:00
Joey Hess
5d4052d0e0
Support remotes using git+ssh and ssh+git as protocol. Closes : #607056
2010-12-14 12:46:09 -04:00
Joey Hess
5ec3cea059
Support remotes using git+ssh:// as protocol. Closes : #607056
2010-12-14 11:37:11 -04:00
Joey Hess
abf084f628
Bugfix: Always correctly handle gitattributes when in a subdirectory of the repository.
2010-11-28 17:17:18 -04:00
Joey Hess
57adb0347b
hlint tweaks
...
Remotes.hs next, and also Backend/* and Command/*
2010-11-22 15:46:57 -04:00
Joey Hess
f2c7a6e73d
got rid of several more calls to git when finding unlocked files
2010-11-11 18:21:54 -04:00
Joey Hess
81524d19a7
add typeChangedFiles
2010-11-10 14:01:41 -04:00
Joey Hess
a3519c365f
hlinted a few files
2010-11-06 17:07:11 -04:00
Joey Hess
d93a372894
add a stupid test harness
2010-11-02 16:49:35 -04:00
Joey Hess
c7b0f60fba
clean up
2010-11-02 16:02:43 -04:00
Joey Hess
cecb1cbeb2
clean up
2010-11-02 16:00:55 -04:00
Joey Hess
9e5985ff98
blew several hours on getting the decodeGitFile 100% right with quickcheck
2010-11-02 15:54:43 -04:00
Joey Hess
82056a7921
reorg
2010-11-02 12:43:34 -04:00
Joey Hess
790613333c
deal with git's insane octal filename encoding
2010-11-02 01:07:34 -04:00
Joey Hess
58c89565e9
updat
2010-11-01 22:50:53 -04:00
Joey Hess
13514b6afc
fix checkAttr to not deadlock and not need strictness
...
Yeah, "will never deadlock" is never a good sign in code comments. ;)
2010-11-01 21:21:13 -04:00
Joey Hess
ab3294f1dd
wrote checkAttr
2010-11-01 18:24:19 -04:00
Joey Hess
99c522edef
finished adding support for annex.ssh-options
2010-11-01 00:04:53 -04:00
Joey Hess
aa05859410
more Wall cleaning
2010-10-31 15:38:47 -04:00
Joey Hess
435ec21d58
bugfix: really run GitQueue against specified repo, not necessarily pwd
2010-10-31 15:25:55 -04:00
Joey Hess
c2651d64bc
Fixed memory leak; git-annex no longer reads the whole file list from git before starting, and will be much faster with large repos.
2010-10-30 23:19:33 -04:00
Joey Hess
8e158b7cec
use -z with git-ls-files, to support files with odd chars
2010-10-29 17:37:05 -04:00
Joey Hess
c9347693d7
factor out stagedFiles
2010-10-29 17:26:26 -04:00
Joey Hess
d92f186fc4
convert safeSystem to boolSystem
...
to fix ctrl-c handling
2010-10-29 14:07:26 -04:00
Joey Hess
5c2c652d7d
Fix support for file:// remotes.
2010-10-28 13:47:10 -04:00
Joey Hess
3e02977814
took Josh's asvice and unified the Repo data types & used pattern matching more
2010-10-28 13:40:10 -04:00
Joey Hess
7109e20e5d
tweak
2010-10-28 12:52:40 -04:00
Joey Hess
045b051ec1
got rid of almost all 'return ()'
2010-10-28 12:40:05 -04:00
Joey Hess
9c7b3dce9e
tweaks
2010-10-28 12:15:21 -04:00
Joey Hess
833d4b342e
copyright statements
2010-10-27 16:53:54 -04:00
Joey Hess
7bd7cca399
some work on the sha1 backend; still incomplete
2010-10-27 15:00:41 -04:00