Joey Hess
ac08924ec3
fix bug in makeUnique
...
Returned the possibly non-unique file
2013-07-28 20:14:13 -04:00
Joey Hess
8c55970413
better extension handling
...
When there's no extension, don't use "none", but "".
When there is an extension, it starts with a dot, so don't put a redundant
dot in the default format.
2013-07-28 19:08:50 -04:00
Joey Hess
8c8488e01a
if a feed cannot be downloaded or has no enclosures, fail
2013-07-28 18:16:24 -04:00
Joey Hess
18541bf3fa
don't crash on encoding issues in feeds
...
filesystem encoding to the rescue once more!
IIRC this was the main bug in hpodder.
2013-07-28 17:24:30 -04:00
Joey Hess
66dfeaff44
show a side action when finding known urls
2013-07-28 17:19:21 -04:00
Joey Hess
7e66d260ea
importfeed: git-annex becomes a podcatcher in 150 LOC
2013-07-28 16:55:42 -04:00
Joey Hess
c6100aa5cc
unused: No longer shows as unused tmp files that are actively being transferred.
2013-07-25 19:51:08 -04:00
Joey Hess
822918089e
dropunused behavior change: Now refuses to drop the last copy of a file, unless you use the --force.
...
This was the last place in git-annex that could remove data referred to by
the git history, without being forced.
Like drop, dropunused checks remotes, and honors the global annex.numcopies
setting. (However, .gitattributes settings cannot apply to unused files.)
2013-07-25 19:50:44 -04:00
Joey Hess
5e3a404d4f
Support import in direct mode.
2013-07-22 20:18:00 -04:00
Joey Hess
f353f13c9d
Support unannex and uninit in direct mode.
...
In direct mode, it's best to whenever possible not move direct mode files
out of the way, and so I made unannex avoid touching the direct mode file at
all.
That actually turns out to be easy, because in direct mode, unlike indirect
mode, the pre-commit hook won't get confused if the unannexed file later
gets added back by git add. So there's no need to commit the unannex right
away; it can be staged for the user to commit later. This also means that
unannex in direct mode is a lot faster than in indirect mode!
Another subtle bit is the bookkeeping that is done when unannexing a direct
mode file. The inode cache needs to be removed so that when uninit runs
getKeysPresent, it doesn't see the cache and think the key is still
present and crash when it's not.
This commit is sponsored by Douglas Butts. Thanks!
2013-07-22 17:28:53 -04:00
Joey Hess
3e422cb5fa
fix uninit to delete content from annex when it ended up hard linked back to the work tree
2013-07-18 13:30:12 -04:00
Joey Hess
1d7d3ac325
uninit: Preserve .git/annex/objects at the end, if it still has content, so that old versions of files and deleted files are not deleted. Print a message with some suggested actions.
2013-07-16 15:00:25 -04:00
Joey Hess
c936384164
fix: Preserve the original mtime of fixed symlinks.
2013-07-11 11:39:42 -04:00
Joey Hess
207c9f3c4a
dropunused, addunused: Complain when asked to operate on a number that does not correspond to any unused key.
2013-07-08 16:47:34 -04:00
Joey Hess
74ad3072e4
addurl --pathdepth: Fix failure when the pathdepth specified is deeper than the urls's path.
2013-07-05 12:46:38 -04:00
Joey Hess
7a7e426352
moved AssociatedFile definition
2013-07-04 02:36:02 -04:00
Joey Hess
980e9a15e0
merge: Now also merges synced/master or similar branches, which makes it useful to put in a post-receive hook to make a repository automatically update its working copy when git annex sync or the assistant sync with it.
2013-07-03 15:42:56 -04:00
Joey Hess
04d07f2c1f
--unused: New switch that makes git-annex operate on all data found by the last run of git annex unused. Supported by fsck, get, move, copy.
2013-07-03 15:26:59 -04:00
Joey Hess
b337a8b4c7
--all for get, move, and copy
2013-07-03 13:55:50 -04:00
Joey Hess
def7cb706f
Add --all option, and support it for fsck
2013-07-03 13:12:53 -04:00
Joey Hess
a35bdcb3f2
fsck: Ensures that direct mode is used for files when it's enabled.
...
A common failure mode for direct mode has been for files to end up still
stored in indirect mode. While I hope that doesn't happen anymore, fsck
should deal with it.
2013-06-24 16:26:00 -04:00
Joey Hess
53d52d57c1
check in configure if ionice -c3 works
...
On old systems, it may need to be run as root.
2013-06-21 13:43:04 -04:00
Joey Hess
d901ba1781
assistant --autostart: Automatically ionices the daemons it starts.
2013-06-21 13:23:20 -04:00
Joey Hess
bf72c2c7fe
make dead output consistent with other trust setting commands
2013-06-18 15:41:19 -04:00
Joey Hess
64f8819ae4
fix build
2013-06-17 21:30:52 -04:00
Joey Hess
9ef09587dc
fsck: Avoid getting confused by Windows path separators
2013-06-17 21:18:43 -04:00
Joey Hess
98be446d02
remove workaround for old bug that was only in one release
...
It's causing some problem on windows, see
http://git-annex.branchable.com/bugs/windows_port_-_repo_can__39__t_pull_newly_added_files_/#comment-45df9748bba687d95e3c96b3877ea925
And only affected WORM backend, and for one release well over a year ago,
so could well be bitrotted.
2013-06-17 20:51:36 -04:00
Joey Hess
2844e7175e
status: No longer shows dead repositories.
...
This is because people continually whine about it. Seemingly not aware
that data generally cannot be deleted from git anyway.
2013-06-17 12:35:33 -04:00
Joey Hess
9666addfaa
sync: Better support for bare git remotes. Now pushes directly to the master branch on such a remote, instead of to synced/master. This makes it easier to clone from a bare git remote that has been populated with git annex sync or by the assistant.
2013-06-12 14:54:23 -04:00
Joey Hess
6dcf21db93
Direct mode: No longer temporarily remove write permission bit of files when adding them.
...
This write permission frobbing is very appropriate in indirect mode,
since annexed objects are stored as immutably as can be managed. But not
in direct mode, where files should be able to be modified at any time.
There are already sufficient guards that there's no need to prevent a file
being written to while it's being ingested, in direct mode. The inode cache
will detect (most) types of modifications, and the add will fail. Then a
re-add should be done. The assistant should get another inotify change
event, and automatically add the new version of the file.
2013-06-12 14:02:31 -04:00
Joey Hess
c46b263fde
Android: Make the "Open webapp" menu item open the just created repository when a new repo is made.
2013-06-10 23:55:53 -04:00
Joey Hess
a64106dcef
Supports indirect mode on encfs in paranoia mode, and other filesystems that do not support hard links, but do support symlinks and other POSIX filesystem features.
2013-06-10 13:11:33 -04:00
Joey Hess
92f036fcb4
avoid warnings when built with ghc 7.6
2013-06-02 15:01:58 -04:00
Joey Hess
91c9ae83f1
squash warning
2013-06-02 14:06:17 -04:00
Joey Hess
a48d340abd
Android: Work around Android devices where the am
command doesn't work.
2013-05-31 21:30:21 -04:00
Joey Hess
cba2942cda
Revert "android dupped stderr workaround"
...
This reverts commit 4cc803c733
.
The stderr fd is also trashed after `am` fails to open the web browser.
2013-05-30 16:27:10 -04:00
Joey Hess
4cc803c733
android dupped stderr workaround
...
Avoid using dupped stderr, since
http://git-annex.branchable.com/bugs/warning_-_WebApp_crashed:___60__file_descriptor_15__62__:_hPutStr:_illegal_operation___40__handle_is_closed__41___on_Android/#comment-a24c73803fb10bd35afdc10d50e071c8
seems to involve that handle not being dupped originally, or perhaps
getting closed when the web browser is started on Android.
Using the dupped stdout is known to work before starting the web browser,
so it should work after -- unless perhaps starting it closes both handles.
In any case, there's no real need to write to stderr here.
2013-05-30 13:55:22 -04:00
Joey Hess
3e2d50a336
Android: Added an "Open WebApp" item to the terminal's menu. Should work for Android devices that cannot auto-open the webapp on start.
2013-05-28 18:25:27 -04:00
Joey Hess
f1cce62283
fix merge conflict resolution when both sides have the same key
...
Still need to git rm the old file so git accepts the merge is resolved.
2013-05-26 18:32:11 -04:00
Joey Hess
2180068e30
correct recent fix
...
fc37456d0fe1fb0fd3e33338223977b3e7a940bb's fix caused it to try to stage a
symlink in .git/annex/tmp, oops
2013-05-26 18:10:07 -04:00
Joey Hess
919a7d7316
sync: Fix double merge conflict resolution handling.
...
Ie, when there'a a conflicted merge we may get foo.variant-xxxx
created in a merge. If a second merge conflict occurs on that new file,
it was not falling back to putting in the whole key (which should stop
the merge conflicts happening for good, but is ugly).
2013-05-26 17:42:15 -04:00
Joey Hess
469b3859fc
reduce the amount of subdirectories created by the fuzz tester to saner limit
2013-05-26 16:15:25 -04:00
Joey Hess
9978269b55
make fuzztest honor annex.diskreserve
2013-05-26 16:04:52 -04:00
Joey Hess
fc37456d0f
fuzz test discovered a way automatic merge resultion can fail; fix
...
It may be that the directory we need to make a symlink in, to resolve the
merge, doesn't exist locally.
2013-05-25 18:42:43 -04:00
Joey Hess
33fe3dac9e
fuzz tester: avoid deleting entire repository (had to happen eventually, right?)
2013-05-25 18:15:34 -04:00
Joey Hess
377bc7bbb7
fix
2013-05-25 17:55:31 -04:00
Joey Hess
ce0ee2aa44
fuzz improvements
2013-05-25 17:52:33 -04:00
Joey Hess
4dc61d74c9
tune frequencies to avoid enormous trees being created
2013-05-25 17:18:37 -04:00
Joey Hess
8b5b4522d1
make fuzz test also output its actions to stdout
2013-05-25 15:52:28 -04:00
Joey Hess
b276857a7a
content: New command line way to view and configure a repository's preferred content settings.
2013-05-25 12:44:58 -04:00