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
4bf1a5ef59
refactor
2011-09-23 18:13:24 -04:00
Joey Hess
456b45b9b3
move annex.numcopies parsing into withNumCopies
2011-09-15 16:24:47 -04:00
Joey Hess
9fe3c6d211
clean up params in usage display
2011-09-15 14:33:37 -04:00
Joey Hess
59fe0b29a6
simplify
2011-09-14 16:01:40 -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
3623d831d1
refactor
2011-09-06 17:45:47 -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
203148363f
split groups of related functions out of Utility
2011-08-22 16:14:12 -04:00
Joey Hess
6c396a256c
finished hlint pass
2011-07-15 12:47:14 -04:00
Joey Hess
cab4ac247c
rename
2011-07-05 20:36:43 -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
80302d0b46
improve bare repo handing
...
Many more commands can work in bare repos now, thanks to the git-annex
branch.
2011-06-22 18:32:41 -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
56bc3e95ca
refactor some boilerplate
2011-05-15 02:02:46 -04:00
Joey Hess
76911a446a
Avoid using absolute paths when staging location log, as that can confuse git when a remote's path contains a symlink. Closes : #621386
...
This was a real PITA to fix, since location logs can be staged in
both the current repo, as well as in local remote's repos, in
which case the cwd will not be in the repo. And git add needs different
params in both cases, when absolute paths are not used.
In passing, git annex fsck now stages location log fixes.
2011-04-25 14:54:24 -04:00
Joey Hess
0956f0dd15
fsck: Ensure that files and directories in .git/annex/objects have proper permissions.
2011-03-28 16:19:20 -04:00
Joey Hess
140a351fc5
avoid version check before running version and upgrade commands
...
There are two types of commands; those that access the repository and those
that don't. Sorted.
2011-03-19 18:58:49 -04:00
Joey Hess
b5b78f26ec
fix up commands that are trouble on bare repos
...
Most will just abort. init does a basic init and gives a command to
run elsewhere to finish it.
2011-03-03 16:40:55 -04:00
Joey Hess
6206b46e60
fsck: Check for and repair location log damage.
2011-03-02 14:30:36 -04:00
Joey Hess
e1d213d6e3
make filename available to fsck messages
2011-01-26 20:37:46 -04:00
Joey Hess
109a719b03
parameterize Backend type
...
This allows the Backend type to not depend on the Annex type, and
so the Annex type can later be moved out of TypeInternals.
2011-01-25 21:02:34 -04:00
Joey Hess
23686cc63d
clarify default values when no path is specified
...
Much of the code to handle this was unnecessary, as git ls-files is used,
and defaults to returning all files of the desired type.
2011-01-13 23:36:58 -04:00
Joey Hess
a89a6f2114
refactor in preparation for adding a git-annex-shell command
2010-12-30 15:06:26 -04:00
Joey Hess
6a5be9d53c
rename some stuff and prepare to break out more into Command/*
2010-12-30 14:19:16 -04:00
Joey Hess
9d82e815ff
change name of numcopies attribute
2010-11-28 18:55:49 -04:00
Joey Hess
653ad35a9f
In .gitattributes, the git-annex-numcopies attribute can be used to control the number of copies to retain of different types of files.
2010-11-28 15:28:20 -04:00
Joey Hess
eeae910242
finished hlinting
2010-11-22 17:51:55 -04:00
Joey Hess
a5e7f5329f
fix
2010-11-15 18:24:29 -04:00
Joey Hess
11096c200f
fsck no longer runs unused
2010-11-15 18:22:50 -04:00
Joey Hess
748a7475bb
dropunused
2010-11-15 18:04:19 -04:00
Joey Hess
9dc43d2599
unused: New subcommand, finds unused data (the global part of fsck).
2010-11-15 16:35:06 -04:00
Joey Hess
19ee56559a
better fsck file handling
2010-11-13 16:15:45 -04:00
Joey Hess
498c8e8544
fsck: avoid global checks if files specified
2010-11-13 16:03:25 -04:00
Joey Hess
5fa25a812a
fsck improvements
...
* fsck: Check if annex.numcopies is satisfied.
* fsck: Verify the sha1 of files when the SHA1 backend is used.
* fsck: Verify the size of files when the WORM backend is used.
* fsck: Allow specifying individual files to fsk if fscking everything
is not desired.
* fsck: Fix bug, introduced in 0.04, in detection of unused data.
2010-11-13 14:59:27 -04:00
Joey Hess
da0de293d1
refactor param seeking
2010-11-11 18:54:52 -04:00
Joey Hess
070e8530c1
refactoring, no code changes really
2010-11-08 15:15:21 -04:00
Joey Hess
009873e0eb
fsck works
2010-11-07 18:22:25 -04:00
Joey Hess
ea8ccaa3d5
rough in fsck
2010-11-07 17:26:21 -04:00
Joey Hess
016b6a59e7
add fsck subcommand (stub)
2010-11-06 17:06:59 -04:00