summaryrefslogtreecommitdiff
path: root/CmdLine.hs
Commit message (Collapse)AuthorAge
* use queue when upgrading, flushing every so oftenGravatar Joey Hess2011-03-16
| | | | | | | | | | | | | | | | | Added a cheap way to query the size of a queue. runQueueAt is not the default yet only because there may be some code that expects to be able to queue some suff, do something else, and run the whole queue at the end. 10240 is an arbitrary size for the queue. If we assume annexed filenames are between 10 and 255 characters long, then the queue will build up between 100kb and 2550kb long commands. The max command line length on linux is somewhere above 20k, so this is a fairly good balance -- the queue will buffer only a few megabytes of stuff and a minimal number of commands will be run by xargs. Also, insert queue items strictly, this should save memory.
* Rethink filename encoding handling for display. Since filename encoding may ↵0.23Gravatar Joey Hess2011-03-12
| | | | or may not match locale settings, any attempt to decode filenames will fail for some files. So instead, do all output in binary mode.
* put in utf8 forcing workaroundGravatar Joey Hess2011-03-08
| | | | | | | | | Haskell's IO layer crashes on characters > 255 when in a non-unicode (latin1) locale. Until Haskell gets better behavior, put in an admittedly ugly workaround for that: git-annex forces utf8 output mode no matter what locale is selected. So if you use a non-utf8 locale, your filenames with characters > 127 will not be displayed as you'd expect. But at least it won't crash.
* Fix test suite to reap zombies.Gravatar Joey Hess2011-02-13
| | | | | | | | 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.
* more pure code refactoringGravatar Joey Hess2011-01-29
|
* shutdown no longer a special caseGravatar Joey Hess2011-01-29
|
* cleanupGravatar Joey Hess2011-01-29
|
* Improved temp file handlingGravatar Joey Hess2011-01-28
| | | | | | | * Improved temp file handling. Transfers of content can now be resumed from temp files later; the resume does not have to be the immediate next git-annex run. * unused: Include partially transferred content in the list.
* better directory handlingGravatar Joey Hess2011-01-27
| | | | | | | | | | Rename Locations functions for better consitency, and make their values more consistent too. Used </> rather than manually building paths. There are still more places that manually do so, but are tricky, due to the behavior of </> when the second FilePath is absolute. So I only changed places where it obviously was relative.
* better warnings displayGravatar Joey Hess2011-01-26
|
* rework config storageGravatar Joey Hess2011-01-26
| | | | | | | Moved away from a map of flags to storing config directly in the AnnexState structure. Got rid of most accessor functions in Annex. This allowed supporting multiple --exclude flags.
* successfully split Annex and AnnexState out of TypeInternalsGravatar Joey Hess2011-01-25
|
* got rid of Core moduleGravatar Joey Hess2011-01-16
| | | | Most of it was to do with managing annexed Content, so put there
* git-annex-shell mostly done now, only needs 2 more subcommandsGravatar Joey Hess2010-12-30
|
* add git-annex-shell commandGravatar Joey Hess2010-12-30
| | | | This is not yet complete, as it does not allow starting rsync or scp.
* factor out a little moreGravatar Joey Hess2010-12-30
|
* tweakGravatar Joey Hess2010-12-30
|
* remove magic numbersGravatar Joey Hess2010-12-30
|
* refactor in preparation for adding a git-annex-shell commandGravatar Joey Hess2010-12-30
|
* rename some stuff and prepare to break out more into Command/*Gravatar Joey Hess2010-12-30
|
* Add trust and untrust subcommands, to allow configuring remotes that are ↵Gravatar Joey Hess2010-12-28
| | | | trusted to retain files without explicit checking.
* Add --exclude option to exclude files from processing.Gravatar Joey Hess2010-12-08
| | | | | Required some lifting so flags are evaled in the Annex monad before file filtering.
* Add uninit subcommand. Closes: #605749Gravatar Joey Hess2010-12-03
|
* Add copy subcommand.Gravatar Joey Hess2010-11-27
|
* dropunusedGravatar Joey Hess2010-11-15
|
* unused: New subcommand, finds unused data (the global part of fsck).Gravatar Joey Hess2010-11-15
|
* find: New subcommand.Gravatar Joey Hess2010-11-14
|
* fsck improvementsGravatar Joey Hess2010-11-13
| | | | | | | | | * 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.
* refactor param seekingGravatar Joey Hess2010-11-11
|
* remove dup filterGravatar Joey Hess2010-11-11
|
* got rid of several more calls to git when finding unlocked filesGravatar Joey Hess2010-11-11
|
* rework command dispatching for add and pre-commitGravatar Joey Hess2010-11-11
| | | | | Both subcommands do two different operations on different sets of files, so allowing a subcommand to perform a list of operations cleans things up.
* allow adding unlocked filesGravatar Joey Hess2010-11-10
|
* edit an alias for unlockGravatar Joey Hess2010-11-10
|
* Avoid using runghc to run test suite as it is not available on all ↵Gravatar Joey Hess2010-11-10
| | | | architectures. Closes: #603006
* lock and unlock subcommandsGravatar Joey Hess2010-11-09
|
* add fsck subcommand (stub)Gravatar Joey Hess2010-11-06
|
* fixesGravatar Joey Hess2010-11-04
|
* support subcommands that take no paramsGravatar Joey Hess2010-11-04
|
* refactorGravatar Joey Hess2010-11-04
|
* broke subcommands out into separate modulesGravatar Joey Hess2010-11-02