Commit graph

30811 commits

Author SHA1 Message Date
Joey Hess
ed639c140d
Fix bug that prevented transfer locks from working when run on SMB or other filesystem that does not support fcntl locks and hard links.
This commit was sponsored by Ethan Aubin.
2017-06-06 14:22:03 -04:00
Joey Hess
fa50906a80
comment 2017-06-06 13:49:13 -04:00
Joey Hess
e0d90448b1
response 2017-06-06 13:43:09 -04:00
Joey Hess
1b89913db8
close 2017-06-06 13:37:18 -04:00
Joey Hess
f04353e066
response 2017-06-06 13:00:54 -04:00
Joey Hess
e23839acf3
Avoid error about git-annex-shell not being found when syncing with -J with a git remote where git-annex-shell is not installed.
This commit was sponsored by andrea rota.
2017-06-06 12:57:27 -04:00
Joey Hess
954a24b5d1
comment 2017-06-06 12:20:51 -04:00
Joey Hess
4f0715344e
response 2017-06-06 11:34:59 -04:00
Joey Hess
5a23ad28eb
update 2017-06-06 10:39:07 -04:00
openmedi
462459f41f 2017-06-05 17:09:38 +00:00
yibe
c8e8d36e85 Added a comment 2017-06-04 20:07:31 +00:00
yibe
3174acde3c Added a comment 2017-06-04 19:26:47 +00:00
interfect@b151490178830f44348aa57b77ad58c7d18e8fe7
4d015cf1d2 2017-06-03 19:24:58 +00:00
interfect@b151490178830f44348aa57b77ad58c7d18e8fe7
c9bef943c6 2017-06-03 18:43:04 +00:00
Tom
cbe91c4ae1 2017-06-03 13:47:26 +00:00
Joey Hess
ca0736cc91
comment 2017-06-01 13:20:13 -04:00
Joey Hess
02df5c5932
support --to=. as shorthand for --to=here 2017-06-01 13:12:42 -04:00
Joey Hess
6ae27843b6
Merge branch 'master' of ssh://git-annex.branchable.com 2017-06-01 12:59:05 -04:00
Joey Hess
94351daba6
configuration to disable automatic merge conflict resolution
* Added annex.resolvemerge configuration, which can be set to false to
  disable the usual automatic merge conflict resolution done by git-annex
  sync and the assistant.
* sync: Added --no-resolvemerge option.

Note that disabling merge conflict resolution is probably not a good idea
in a direct mode repo or adjusted branch. Since updates to both are done
outside the usual work tree, if it fails the tree is not left in a
conflicted state, and it would be hard to manually resolve the conflict.
Still, made annex.resolvemerge be supported in those cases for consistency.

This commit was sponsored by Riku Voipio.
2017-06-01 12:51:01 -04:00
pgunn01@39c747700d10e9e9e4557a407cba2f88c22b202d
9a48f07469 Added a comment: reply to joey 2017-06-01 16:47:25 +00:00
Joey Hess
d5cb853dd0
expand docs 2017-06-01 11:56:56 -04:00
Joey Hess
650b3fd4c7
comment 2017-06-01 11:48:45 -04:00
Joey Hess
bb060f000f
error when metadata set is used with file that does not exist
When setting metadata of a file that did not exist, no error message was
displayed, unlike getting metadata and most other git-annex commands. Fixed
this oversight.

Note that, if the file exists but is not annexed, there's no error.
This is the same behavior as other git-annex commands.

This commit was supported by the NSF-funded DataLad project.
2017-06-01 11:40:47 -04:00
Joey Hess
970fd765d7
Merge branch 'master' of ssh://git-annex.branchable.com 2017-06-01 11:34:20 -04:00
florian-git-annex@90936f45daa5a57ed4b867f7ebc35e23acad1a08
e1a60f590c Added a comment: apt-get build-dep git-annex problem on Raspbian 2017-06-01 07:09:58 +00:00
Joey Hess
98b2917b59
document move/copy --fast and --force
There was documentation in 66285ca3d1,
but it was lost in the man page split.

I don't know if this --force is very useful. Considered removing it
instead..
2017-05-31 20:01:21 -04:00
Joey Hess
efb9ebbe7d
Merge branch 'master' of ssh://git-annex.branchable.com 2017-05-31 17:08:22 -04:00
Joey Hess
8ee8a7b0b3
devblog 2017-05-31 17:05:04 -04:00
Joey Hess
bb18026b2c
move --to=here
* move --to=here moves from all reachable remotes to the local repository.

The output of move --from remote is changed slightly, when the remote and
local both have the content. It used to say:
move foo ok
Now:
move foo (from theremote...) ok

That was done so that, when move --to=here is used and the content is
locally present and also in several remotes, it's clear which remotes the
content gets dropped from.

Note that move --to=here will report an error if a non-reachable remote
contains the file, even if the local repository also contains the file. I
think that's reasonable; the user may be intending to move all other copies
of the file from remotes.

OTOH, if a copy of the file is believed to be present in some repository
that is not a configured remote, move --to=here does not report an error.
So a little bit inconsistent, but erroring in this case feels wrong.

copy --to=here came along for free, but it's basically the same behavior as
git-annex get, and probably with not as good messages in edge cases
(especially on failure), so I've not documented it.

This commit was sponsored by Anthony DeRobertis on Patreon.
2017-05-31 17:00:18 -04:00
Joey Hess
5ee6912cf3
support parsing options like --to=here
Reworked remote name parsing to allow things like that. Command.Move
uses it for --to=here, although there's not yet an implementation of
that option.

This commit was sponsored by Ignacio on Patreon.
2017-05-31 16:49:28 -04:00
zkaufman
421239d344 2017-05-31 20:18:36 +00:00
Øyvind A. Holm
8c40d37712 The second argument of "git annex group" is optional, fix the man page 2017-05-31 12:09:15 +02:00
pgunn01@39c747700d10e9e9e4557a407cba2f88c22b202d
1dd2e72211 2017-05-30 22:21:47 +00:00
Horus
df880fe815 Added a comment 2017-05-29 18:10:55 +00:00
mario
69054c6bd4 Added a comment: Working again 2017-05-29 15:19:18 +00:00
http://schnouki.net/
2124d5316f Added a comment 2017-05-29 09:56:59 +00:00
ewen
e6d9c459e3 Added a comment: Standalone git-annex on Synology DS216+ NAS 2017-05-28 01:24:43 +00:00
ewen
dbc48abb32 Added a comment: git-annex on Synology DS216+ (x86-64) 2017-05-28 01:19:17 +00:00
jeff
f55a04af4f 2017-05-26 20:29:12 +00:00
yarikoptic
61131d87b0 Added a comment: woohoo 2017-05-26 02:03:57 +00:00
Joey Hess
e1cf095ae8
Avoid concurrent git-config setting problem when running concurrent threads.
See my comment. This only avoids the problem for -J; two git-annex
processes started at the same time could still both try to write to
.git/config and one fail. That would be very unlikely though, and it
doesn't really seem worth adding an additional layer of locking around
.git/config.

This commit was supported by the NSF-funded DataLad project.
2017-05-25 18:28:23 -04:00
Joey Hess
7db37ddde0
Fix transfer log file locking problem when running concurrent transfers.
orElse is great, but was not the right thing to use here because
waitTakeLock could retry for other reasons than the lock being held,
which made tryTakeLock fail when it shouldn't.

Instead, move the code to tryTakeLock and implement waitTakeLock using
tryTakeLock and retry.

(Also, in runTransfer, when checkSaneLock fails, dropLock to avoid leaking a
lock handle.)

This commit was supported by the NSF-funded DataLad project.
2017-05-25 17:40:23 -04:00
yarikoptic
df9ba3b5b4 Added a comment 2017-05-25 18:39:03 +00:00
Joey Hess
36f4510a96
Merge branch 'master' of ssh://git-annex.branchable.com 2017-05-25 14:34:13 -04:00
Joey Hess
9bddc6d5ca
Improve progress display when watching file size, in cases where a transfer does not resume.
This commit was supported by the NSF-funded DataLad project.
2017-05-25 14:30:18 -04:00
mario
e36e58cd68 Added a comment 2017-05-25 18:26:00 +00:00
Joey Hess
78b9e9c67f
response 2017-05-25 13:53:22 -04:00
Joey Hess
b6f99891de
comment 2017-05-25 13:50:34 -04:00
Joey Hess
f623623343
comment 2017-05-25 13:46:48 -04:00
Joey Hess
4c2e701f0b
improve docs, mention git config receive.denyCurrentBranch updateInstead 2017-05-25 13:43:20 -04:00