Joey Hess
96e561bc47
use Set instead of existence Map
...
more efficient and idiomatic
I did try using Set.difference, it's still slower than my method.
2011-01-30 01:41:15 -04:00
Joey Hess
c64b50a0ce
shutdown no longer a special case
2011-01-29 23:32:32 -04:00
Joey Hess
5584ccc8ad
factor out pure code
2011-01-29 23:30:08 -04:00
Joey Hess
e6da7eb177
Improved temp file handling
...
* 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.
2011-01-28 14:10:50 -04:00
Joey Hess
04fe906ac6
use safewritefile
2011-01-28 12:35:51 -04:00
Joey Hess
167523f09d
better directory handling
...
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.
2011-01-27 17:00:32 -04:00
Joey Hess
dee9655237
bugfix to move --to
...
Due to recent changes, the remotes config was not read before the remote
to act on was picked.
2011-01-27 15:45:22 -04:00
Joey Hess
e1d213d6e3
make filename available to fsck messages
2011-01-26 20:37:46 -04:00
Joey Hess
b7903eb2d1
move partitioning out of keyPossibilities
...
And a bug fix in passing.
2011-01-26 16:44:14 -04:00
Joey Hess
7f6af79232
trust setting improvements
2011-01-26 16:20:28 -04:00
Joey Hess
7b2da21ab7
avoid moving if src and dest are the same
2011-01-26 15:59:10 -04:00
Joey Hess
268cb35e64
implement 3 level trust storage in trust.log
2011-01-26 15:37:16 -04:00
Joey Hess
6a97b10fcb
rework config storage
...
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.
2011-01-26 00:17:38 -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
e7b557ef5d
got rid of Core module
...
Most of it was to do with managing annexed Content, so put there
2011-01-16 16:05:05 -04:00
Joey Hess
59c9eda962
on second thought, unlock should fail if content is not present
2011-01-14 00:02:33 -04:00
Joey Hess
c1839fdccb
unlock: Fix behavior when file content is not present.
2011-01-13 23:46:02 -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
bb4a45f9ce
avoid crashing if run before unused log is present
2011-01-12 01:57:49 -04:00
Joey Hess
ba6727f663
always write log, so it's empty if nothing is unused
2011-01-12 01:57:32 -04:00
Joey Hess
e18a4d566b
migrate: Fix support for --backend option.
2011-01-11 21:32:38 -04:00
Joey Hess
caa0b6c0c2
quiet git commit messages
2011-01-11 18:49:45 -04:00
Joey Hess
9de982eab7
copyright years
2011-01-08 16:09:17 -04:00
Joey Hess
a78b0555e1
New migrate subcommand can be used to switch files to using a different backend, safely and with no duplication of content.
2011-01-08 15:54:14 -04:00
Joey Hess
32b0e10390
unannex: Now skips files whose content is not present, rather than it being an error. This allows gradual conversion from one backend to another by running unannex followed by add in each repository.
2011-01-08 15:14:41 -04:00
Joey Hess
6cb1dff757
quiet git commits
2011-01-07 13:57:37 -04:00
Joey Hess
e43d4730c5
bugfix: Running copy --to
when both local and remote had the key dropped it from local.
2011-01-07 02:14:22 -04:00
Joey Hess
f1b747e6d9
bugfix: Running move --to
with a remote whose UUID was not yet known
...
* bugfix: Running `move --to` with a remote whose UUID was not yet known
could result in git-annex not recording on the local side where the
file was moved to. This could not result in data loss, or even a
significant problem, since the remote *did* record that it had the file.
* Also, add a general guard to detect attempts to record information
about repositories with missing UUIDs.
2011-01-04 17:45:27 -04:00
Joey Hess
a857e1f4ee
git-annex-shell: Avoid exposing any git repo config except for the annex.uuid when doing configlist.
2011-01-04 17:34:14 -04:00
Joey Hess
700aed13cf
git-annex-shell now exclusively used for all remote access
2010-12-31 19:09:17 -04:00
Joey Hess
30e0065ab9
tuple makes it clearer
2010-12-31 15:52:59 -04:00
Joey Hess
eac433a84a
use git-annex-shell configlist
2010-12-31 15:46:33 -04:00
Joey Hess
60df4e5728
git-annex-shell is complete
...
still not used
2010-12-31 13:39:43 -04:00
Joey Hess
f38aa3e83a
unfinished switch to using git-annex-shell
2010-12-30 20:31:52 -04:00
Joey Hess
a5a302b77d
git-annex-shell mostly done now, only needs 2 more subcommands
2010-12-30 20:08:22 -04:00
Joey Hess
7a52b34e06
add git-annex-shell command
...
This is not yet complete, as it does not allow starting rsync or scp.
2010-12-30 16:52:24 -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
e64ffc212e
support trusted repositories that are not configured as remotes
2010-12-29 16:58:44 -04:00
Joey Hess
d475aac375
refactor
2010-12-29 16:21:38 -04:00
Joey Hess
1f20277ec7
forgot to add these
2010-12-28 17:44:55 -04:00
Joey Hess
dd55f21450
add a newline
2010-12-24 19:28:02 -04:00
Joey Hess
57305570eb
Add uninit subcommand. Closes : #605749
2010-12-03 00:33:41 -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
92e5d28ca8
precommit: Optimise to avoid calling git-check-attr more than once.
2010-11-28 14:21:30 -04:00
Joey Hess
6dfae19b1b
add
2010-11-27 17:09:22 -04:00
Joey Hess
e0518a4adc
Fix bug in setkey subcommand triggered by move --to.
2010-11-27 17:07:22 -04:00
Joey Hess
e97d13e29b
Add copy subcommand.
2010-11-27 17:02:53 -04:00
Joey Hess
eeae910242
finished hlinting
2010-11-22 17:51:55 -04:00