Commit graph

21083 commits

Author SHA1 Message Date
https://www.google.com/accounts/o8/id?id=AItOawld54zdyk6b0W4jXnssSO_j2Nn3W1uVsUE
230eba2fd8 Added a comment 2014-08-24 20:27:09 +00:00
https://www.google.com/accounts/o8/id?id=AItOawld54zdyk6b0W4jXnssSO_j2Nn3W1uVsUE
51f129d9f4 2014-08-24 19:59:38 +00:00
https://www.google.com/accounts/o8/id?id=AItOawld54zdyk6b0W4jXnssSO_j2Nn3W1uVsUE
291eaa50ba Added a comment 2014-08-24 18:31:25 +00:00
https://www.google.com/accounts/o8/id?id=AItOawld54zdyk6b0W4jXnssSO_j2Nn3W1uVsUE
ff138fc7c1 Added a comment 2014-08-24 18:29:23 +00:00
Ganwell
98f52bbd4a removed 2014-08-24 17:43:30 +00:00
Ganwell
fcd8fe8c6c Added a comment: Project for Paul 2014-08-24 16:48:33 +00:00
https://www.google.com/accounts/o8/id?id=AItOawld54zdyk6b0W4jXnssSO_j2Nn3W1uVsUE
a9f886f69a Added a comment 2014-08-24 11:53:11 +00:00
https://www.google.com/accounts/o8/id?id=AItOawld54zdyk6b0W4jXnssSO_j2Nn3W1uVsUE
030e9aa7f0 Added a comment 2014-08-24 11:04:21 +00:00
http://svario.it/gioele
1f25a79e08 Added a comment 2014-08-24 10:41:58 +00:00
https://www.google.com/accounts/o8/id?id=AItOawld54zdyk6b0W4jXnssSO_j2Nn3W1uVsUE
c4839e03f7 2014-08-24 02:55:33 +00:00
Joey Hess
06b51f67ac no lsof build-dep on hurd
No assistant there
2014-08-23 18:47:31 -07:00
Joey Hess
756a6277ff Fix stub git-annex test support when built without tasty. 2014-08-23 18:46:08 -07:00
Joey Hess
4405650828 Fix handing of autocorrection when running outside a git repository.
Old behavior was to take the first fuzzy match. Now, it checks the globa
git config, and runs the normal fuzzy handling, including failing to run a
semi-random command by default.
2014-08-23 16:51:33 -07:00
Joey Hess
6f80bacbf5 more links 2014-08-23 16:30:12 -07:00
Joey Hess
1e0d19d948 height3 2014-08-23 16:28:44 -07:00
Joey Hess
2b234634f6 fix imports for windows 2014-08-23 16:27:24 -07:00
Joey Hess
83c69ad721 height2 2014-08-23 16:26:35 -07:00
Joey Hess
925144497b height 2014-08-23 16:24:41 -07:00
Joey Hess
da304ba504 add debian buildd status 2014-08-23 16:23:05 -07:00
Joey Hess
23592716c9 Merge branch 'master' of ssh://git-annex.branchable.com 2014-08-23 16:17:31 -07:00
https://launchpad.net/~pauli-virtanen
bd7fd9c3d9 2014-08-23 23:12:39 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmBmv0HhwTFxkpxlf8ifTlMOHnIwHCHTYs
79ccc7e347 Added a comment: path on windows 2014-08-23 22:02:07 +00:00
https://www.google.com/accounts/o8/id?id=AItOawk7iPiqWr3BVPLWEDvJhSSvcOqheLEbLNo
99771b3404 Added a comment 2014-08-23 18:13:06 +00:00
Joey Hess
53b302d755 Merge branch 'master' of ssh://git-annex.branchable.com 2014-08-23 08:52:30 -07:00
https://www.google.com/accounts/o8/id?id=AItOawk7iPiqWr3BVPLWEDvJhSSvcOqheLEbLNo
51acb30238 2014-08-23 13:59:59 +00:00
warroyo
b768cd1262 2014-08-22 22:15:27 +00:00
zardoz
6bc2419f02 Added a comment 2014-08-22 18:57:37 +00:00
zardoz
d5bce8a3b8 Added a comment 2014-08-22 14:00:42 +00:00
zardoz
3a0d342bfd Added a comment 2014-08-22 13:15:06 +00:00
zardoz
646e36d1d1 Added a comment 2014-08-22 13:07:34 +00:00
zardoz
4f189d0134 Added a comment 2014-08-22 10:15:52 +00:00
zardoz
8002704a3f Added a comment 2014-08-22 09:58:05 +00:00
zardoz
356c782ace Added a comment 2014-08-22 09:38:03 +00:00
zardoz
ef121f0d48 Added a comment 2014-08-22 09:27:34 +00:00
zardoz
71f80ad226 2014-08-22 09:08:23 +00:00
zardoz
0ffd1a8148 2014-08-21 09:33:02 +00:00
Hans_Ryding
7e0cacd273 Added a comment: Change the name of the bug 2014-08-21 09:14:16 +00:00
Hans_Ryding
1b86daa5de Added a comment: Quite right 2014-08-21 08:54:51 +00:00
Joey Hess
aebcc395ff use types to enforce that removeAnnex can only be called inside lockContent
This fixed one bug where it needed to be and wasn't (in Assistant.Unused).
And also found one place where lockContent was used unnecessarily (by
drop --from remote).

A few other places like uninit probably don't really need to lockContent,
but it doesn't hurt to do call it anyway.

This commit was sponsored by David Wagner.
2014-08-20 20:13:47 -04:00
Joey Hess
9cb78e18ad Merge branch 'master' of ssh://git-annex.branchable.com 2014-08-20 19:46:04 -04:00
Joey Hess
747bf6ce79 devblog 2014-08-20 19:45:41 -04:00
Joey Hess
59eae904b1 final scary locking refactoring (for now)
Note that while before checkTransfer this called getLock with WriteLock,
getLockStatus's use of ReadLock will also notice any exclusive locks.
Since transfer info files are only locked exclusively, never shared,
there is no behavior change.

Also, fixes checkLocked to actually return Just False when the file
exists, but is not locked.
2014-08-20 19:30:40 -04:00
Joey Hess
1994771215 more lock file refactoring
Also fixes a test suite failures introduced in recent commits, where
inAnnexSafe failed in indirect mode, since it tried to open the lock file
ReadWrite. This is why the new checkLocked opens it ReadOnly.

This commit was sponsored by Chad Horohoe.
2014-08-20 18:58:14 -04:00
Joey Hess
e386e26ef2 avoid trying to create a content file in order to lock it
The nice refactoring in ec7dd0446a
highlighted a bug in lockContent -- when the content is not present,
this incorrectly created an empty lock file, using the same filename
as the content file.

This seems like it could result in empty objects, which fsck would detect
and complain about. Both drop and move --to call lockContent, as does
Remote.Git.dropKey -- I think we got lucky and this bug didn't show up
because both all of those only operate on files that are present. So
this bug could only manifest if there was a race, and a file's content
was dropped at just the wrong time, just as another process was about to
drop it. (And then only if the other process's dropping failed, otherwise
it'd delete the empty object file.)

Hmm, move --from also called lockContent. Unnecessarily, since the content
is not being removed from the local annex. In this case, the combination of
the 2 bugs could result in an empty lock file being written, and then if
the download of the content failed, left in the object directory as the
content.

This commit also optimises lockContent, avoiding an unncessary
doesFileExist test and instead just catching the exception that's thrown
when the file doesn't exist.

This commit was sponsored by Justine Lam.
2014-08-20 17:25:30 -04:00
Joey Hess
ec7dd0446a more lock file refactoring 2014-08-20 17:03:04 -04:00
Joey Hess
d279180266 reorganize and refactor lock code
Added a convenience Utility.LockFile that is not a windows/posix
portability shim, but still manages to cut down on the boilerplate around
locking.

This commit was sponsored by Johan Herland.
2014-08-20 16:45:58 -04:00
https://www.google.com/accounts/o8/id?id=AItOawkftzaCvV7EDKVDfJhsQZ3E1Vn-0db516w
f4b69fb749 Added a comment: GHC 7.8 Issue 2014-08-20 20:06:01 +00:00
Joey Hess
0a4d301051 fix lockFileShared to actually create lock file
This was a bug, but it was only used for ssh locks and by the hook special
remote locking. At least in the case of ssh locks, the lock files happened
to already exist before this tried to use them, so the bug didn't cause
anything to break.
2014-08-20 15:49:49 -04:00
Joey Hess
bf3133ebb0 whoops, I the debug prints 2014-08-20 12:14:56 -04:00
Joey Hess
f92fd1b1e4 Merge branch 'master' of ssh://git-annex.branchable.com 2014-08-20 12:11:05 -04:00