]> dgit.raspbian.org Git - git-annex.git/log
git-annex.git
6 years agocomment
Joey Hess [Mon, 20 Apr 2020 16:06:14 +0000 (12:06 -0400)]
comment

6 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 20 Apr 2020 14:03:38 +0000 (10:03 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

6 years ago(no commit message)
thk [Sun, 19 Apr 2020 08:15:47 +0000 (08:15 +0000)]

6 years agobug
Joey Hess [Sun, 19 Apr 2020 03:57:48 +0000 (23:57 -0400)]
bug

6 years agoAdded a comment
yarikoptic [Sat, 18 Apr 2020 02:14:32 +0000 (02:14 +0000)]
Added a comment

6 years agoAdded a comment
yarikoptic [Sat, 18 Apr 2020 02:05:52 +0000 (02:05 +0000)]
Added a comment

6 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Fri, 17 Apr 2020 21:47:59 +0000 (17:47 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

6 years agocomment
Joey Hess [Fri, 17 Apr 2020 21:32:49 +0000 (17:32 -0400)]
comment

6 years agofix a thundering herd problem
Joey Hess [Fri, 17 Apr 2020 21:09:29 +0000 (17:09 -0400)]
fix a thundering herd problem

Avoid repeatedly opening keys db when accessing a local git remote and -J
is used.

What was happening was that Remote.Git.onLocal created a new annex state
as each thread started up. The way the MVar was used did not prevent that.
And that, in turn, led to repeated opening of the keys db, as well as
probably other extra work or resource use.

Also managed to get rid of Annex.remoteannexstate, and it turned out there
was an unncessary Maybe in the keysdbhandle, since the handle starts out
closed.

6 years agoAdded a comment: quick follow up
yarikoptic [Fri, 17 Apr 2020 20:34:55 +0000 (20:34 +0000)]
Added a comment: quick follow up

6 years agoremove unused import
Joey Hess [Fri, 17 Apr 2020 19:19:49 +0000 (15:19 -0400)]
remove unused import

6 years agomove remoteList into dupState
Joey Hess [Fri, 17 Apr 2020 18:36:45 +0000 (14:36 -0400)]
move remoteList into dupState

This does mean that RemoteDaemon.Transport.Tor's call runs it, otherwise
no change, but this is groundwork for doing more such expensive actions
in dupState.

6 years agocomment
Joey Hess [Fri, 17 Apr 2020 18:11:17 +0000 (14:11 -0400)]
comment

6 years agocomment
Joey Hess [Fri, 17 Apr 2020 16:37:28 +0000 (12:37 -0400)]
comment

6 years agoAdded a comment: find wanted on remote?
Dan [Thu, 16 Apr 2020 21:19:44 +0000 (21:19 +0000)]
Added a comment: find wanted on remote?

6 years agoAdded a comment
yarikoptic [Thu, 16 Apr 2020 03:43:13 +0000 (03:43 +0000)]
Added a comment

6 years agoAdded a comment: it is many more "open files" in reality
yarikoptic [Thu, 16 Apr 2020 03:41:07 +0000 (03:41 +0000)]
Added a comment: it is many more "open files" in reality

6 years agoimprove programPath
Joey Hess [Wed, 15 Apr 2020 20:46:34 +0000 (16:46 -0400)]
improve programPath

Fixes a failure mode where git-annex sync would try to run git-annex and
complain that it failed to find it in ~/.config/git-annex/program or PATH,
when there was a git-annex in /usr/bin/, but the original one was run
from elsewhere (eg, ~/bin) and happened not to be present any longer.

Now, it will fall back to using git-annex from PATH in such a case.
Which might fail due to some version incompatability, but still better
than a misleading error message.

Also made readProgramFile only read the file, not look for git-annex in
PATH as a fallback. That fallback may have confused Assistant.Upgrade,
which really wants the value from the file.

6 years agofix absolute filenames fed into --batch and git-annex info
Joey Hess [Wed, 15 Apr 2020 20:04:05 +0000 (16:04 -0400)]
fix absolute filenames fed into --batch and git-annex info

6 years agoreproduced
Joey Hess [Wed, 15 Apr 2020 19:06:53 +0000 (15:06 -0400)]
reproduced

6 years agoremove warning about git gc for annex.alwayscommit=false
Joey Hess [Wed, 15 Apr 2020 18:25:33 +0000 (14:25 -0400)]
remove warning about git gc for annex.alwayscommit=false

I doubt that warning has ever been right, but I'm sure it is not right
now.

For there to be a risk of git gc deleting objects that are in the annex
index, journal files would have to be staged into it, and deleted, but
the index not committed to the git-annex branch. And AFAICS, there is no
code path where that actually happens. I considered adding one recently,
but didn't.

The way it actually works is, as long as the user has annex.alwayscommit=false
the data lives in the journal, where it's safe from git gc. Then when
git-annex is run w/o that config, the journal is staged into the index,
which is immediately committed to the branch. There's no window where
git gc could delete the objects, because git gc only deletes objects
after some time (2 weeks by default).

Now, if git-annex gets suspended at just the wrong time, or interrupted,
then yes, it's possible. But doesn't matter whether that config was ever
set or not. And many uses of git-annex also recover from that situation
by committing to the git-annex branch.

6 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 15 Apr 2020 18:20:06 +0000 (14:20 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

6 years agoclose bug that was apparently fixed satisfactorally
Joey Hess [Wed, 15 Apr 2020 18:17:21 +0000 (14:17 -0400)]
close bug that was apparently fixed satisfactorally

6 years agoclose
Joey Hess [Wed, 15 Apr 2020 18:15:41 +0000 (14:15 -0400)]
close

6 years agoclose old bug since git-annex no longer uses rsync like it used to
Joey Hess [Wed, 15 Apr 2020 18:08:48 +0000 (14:08 -0400)]
close old bug since git-annex no longer uses rsync like it used to

6 years agoAdded a comment
kyle [Wed, 15 Apr 2020 18:02:29 +0000 (18:02 +0000)]
Added a comment

6 years agofix all remaining -Wincomplete-uni-patterns warnings
Joey Hess [Wed, 15 Apr 2020 17:55:08 +0000 (13:55 -0400)]
fix all remaining -Wincomplete-uni-patterns warnings

A couple of these were probably actual bugs in edge cases. Most of the
changes I'm fine with. The fact that aeson's object returns sometihng
that we know will be an Object, but the type checker does not know is
kind of annoying.

6 years agodisable journal read optimisation when alwayscommit=false
Joey Hess [Wed, 15 Apr 2020 17:04:34 +0000 (13:04 -0400)]
disable journal read optimisation when alwayscommit=false

The journal read optimisation in aeca7c220 later got fixed in eedd73b84
to stage and commit any files that were left in the journal by a
previous git-annex run. That's necessary for the optimisation to work
correctly. But it also meant that alwayscommit=false started committing
the previous git-annex processes journalled changes, which defeated the
purpose of the config setting entirely.

So, disable the optimisation when alwayscommit=false, leaving the
files in the journal and not committing them. See my comments on the bug
report for why this seemed the best approach.

Also fixes a problem when annex.merge-annex-branches=false and there
are changes in the journal. That config indirectly prevents committing
the journal. (Which seems a bit odd given its name, but it always has..)
So, when there were changes in the journal, perhaps left there due to
alwayscommit=false being set before, the optimisation would prevent
git-annex from reading the journal files, and it would operate with out
of date information.

6 years agofix warning
Joey Hess [Wed, 15 Apr 2020 17:04:00 +0000 (13:04 -0400)]
fix warning

I don't think the NoConfigValue case ever actually occurs here.

6 years agocomment
Joey Hess [Wed, 15 Apr 2020 16:48:55 +0000 (12:48 -0400)]
comment

6 years agocomment
Joey Hess [Wed, 15 Apr 2020 16:43:22 +0000 (12:43 -0400)]
comment

6 years agobetter response
Joey Hess [Wed, 15 Apr 2020 16:17:57 +0000 (12:17 -0400)]
better response

6 years agohm
Joey Hess [Wed, 15 Apr 2020 16:14:39 +0000 (12:14 -0400)]
hm

6 years agocorrection
Joey Hess [Wed, 15 Apr 2020 16:12:11 +0000 (12:12 -0400)]
correction

6 years agocomment
Joey Hess [Wed, 15 Apr 2020 16:10:51 +0000 (12:10 -0400)]
comment

6 years ago(no commit message)
Christoph.Schmidpeter@d3e5d124c7d5459315c2a9f983ab9a70b88e1d03 [Wed, 15 Apr 2020 13:06:14 +0000 (13:06 +0000)]

6 years agoremoved
Christoph.Schmidpeter@d3e5d124c7d5459315c2a9f983ab9a70b88e1d03 [Wed, 15 Apr 2020 13:00:12 +0000 (13:00 +0000)]
removed

6 years agoAdded a comment: Problems with Assistant and Android
Christoph.Schmidpeter@d3e5d124c7d5459315c2a9f983ab9a70b88e1d03 [Wed, 15 Apr 2020 12:59:44 +0000 (12:59 +0000)]
Added a comment: Problems with Assistant and Android

6 years ago(no commit message)
Christoph.Schmidpeter@d3e5d124c7d5459315c2a9f983ab9a70b88e1d03 [Wed, 15 Apr 2020 12:59:04 +0000 (12:59 +0000)]

6 years ago(no commit message)
Christoph.Schmidpeter@d3e5d124c7d5459315c2a9f983ab9a70b88e1d03 [Wed, 15 Apr 2020 12:09:08 +0000 (12:09 +0000)]

6 years agobug: alwayscommit=false creating commits
kyle [Tue, 14 Apr 2020 22:43:34 +0000 (22:43 +0000)]
bug: alwayscommit=false creating commits

6 years agoAdded a comment
erewhon [Tue, 14 Apr 2020 21:45:35 +0000 (21:45 +0000)]
Added a comment

6 years agoremoved
erewhon [Tue, 14 Apr 2020 21:30:38 +0000 (21:30 +0000)]
removed

6 years agoAdded a comment
erewhon [Tue, 14 Apr 2020 21:20:51 +0000 (21:20 +0000)]
Added a comment

6 years agoremoved
erewhon [Tue, 14 Apr 2020 21:19:46 +0000 (21:19 +0000)]
removed

6 years agoAdded a comment
erewhon [Tue, 14 Apr 2020 21:18:23 +0000 (21:18 +0000)]
Added a comment

6 years ago--auto doc wording
Joey Hess [Mon, 13 Apr 2020 20:12:48 +0000 (16:12 -0400)]
--auto doc wording

try to make more clear that --auto is not --all

6 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 13 Apr 2020 20:08:21 +0000 (16:08 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

6 years agofix runtime crash on incomplete pattern match in lambda
Joey Hess [Mon, 13 Apr 2020 19:56:10 +0000 (15:56 -0400)]
fix runtime crash on incomplete pattern match in lambda

This was very susprising to me that it was not caught by -Wall, so I
enabled -Wincomplete-uni-patterns to catch such things. It found a
second one just lines above, but no others anywhere.

6 years agoAdded a comment
kyle [Mon, 13 Apr 2020 18:58:50 +0000 (18:58 +0000)]
Added a comment

6 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 13 Apr 2020 18:32:46 +0000 (14:32 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

6 years agocomment
Joey Hess [Mon, 13 Apr 2020 18:07:23 +0000 (14:07 -0400)]
comment

6 years agoWhen parsing git configs, support all the documented ways to write true and false...
Joey Hess [Mon, 13 Apr 2020 17:45:40 +0000 (13:45 -0400)]
When parsing git configs, support all the documented ways to write true and false, including "yes", "on", "1", etc.

This change does impact git-annex config
eg "git annex config --set annex.addunlocked on"
will store "on" and new git-annex will understand that value, while
old git-annex will error:
git-annex: bad annex.addunlocked configuration in git annex config:
Parse failure: near "on"
That seems acceptable.

Not special remote configs that are only documented as =true or =false
however. Having git-annex support other values for those would break
backwards compatability when used with old versions of git-annex. And
older versions ignore invalid special remote configs.. That would not
be a good combination.

6 years agosupport boolean git configs that are represented by the name of the setting with...
Joey Hess [Mon, 13 Apr 2020 17:35:22 +0000 (13:35 -0400)]
support boolean git configs that are represented by the name of the setting with no value

Eg"core.bare" is the same as "core.bare = true".

Note that git treats "core.bare =" the same as "core.bare = false", so the
code had to become more complicated in order to treat the absense of a
value differently than an empty value. Ugh.

6 years agoFix a potential failure to parse git config
Joey Hess [Mon, 13 Apr 2020 17:05:41 +0000 (13:05 -0400)]
Fix a potential failure to parse git config

Git has an obnoxious special case in git config, a line "foo" is the same
as "foo = true". That means there is no way to examine the output of
git config and tell if it was run with --null or not, since a "foo"
in the first line could be such a boolean, or could be followed by its
value on the next line if --null were used.

So, rather than trying to do such a detection, track the style of config
at all the points where it's generated.

6 years agoimprove documentation
Joey Hess [Mon, 13 Apr 2020 16:33:35 +0000 (12:33 -0400)]
improve documentation

6 years ago(no commit message)
bjornw@6a7d7d0413efc7ed3bb44922586f040bb768b71c [Mon, 13 Apr 2020 16:30:33 +0000 (16:30 +0000)]

6 years agoBest way to restore objects with correct names w/o git log present?
4omecha@fff0ca6fa5307d92706e5ee6812d8db8f8067df0 [Mon, 13 Apr 2020 09:19:23 +0000 (09:19 +0000)]
Best way to restore objects with correct names w/o git log present?

6 years agobad edit
4omecha@fff0ca6fa5307d92706e5ee6812d8db8f8067df0 [Mon, 13 Apr 2020 09:16:39 +0000 (09:16 +0000)]
bad edit

This reverts commit ce664ebc7b27c75928c610f701e21b48db7cb338

6 years agoBest way to restore objects with correct names w/o git log present?
4omecha@fff0ca6fa5307d92706e5ee6812d8db8f8067df0 [Mon, 13 Apr 2020 09:13:51 +0000 (09:13 +0000)]
Best way to restore objects with correct names w/o git log present?

6 years agoAdded a comment
Ilya_Shlyakhter [Mon, 13 Apr 2020 00:53:59 +0000 (00:53 +0000)]
Added a comment

6 years ago(no commit message)
erewhon [Sun, 12 Apr 2020 19:28:38 +0000 (19:28 +0000)]

6 years ago(no commit message)
erewhon [Sun, 12 Apr 2020 19:10:35 +0000 (19:10 +0000)]

6 years agofix reversion caused by earlier optimisation to git-annex branch reads
Joey Hess [Fri, 10 Apr 2020 19:18:38 +0000 (15:18 -0400)]
fix reversion caused by earlier optimisation to git-annex branch reads

aeca7c2207a652c8a72f044204a5c0edb4782aac was predicated on the
assumption that updateTo would stage any journal files, but in one case
it did not actually do so. The test suite happened to expose the bug.

6 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Fri, 10 Apr 2020 18:46:59 +0000 (14:46 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

6 years agooptimise catfile interface with ByteString and Attoparsec
Joey Hess [Fri, 10 Apr 2020 18:03:40 +0000 (14:03 -0400)]
optimise catfile interface with ByteString and Attoparsec

Around 3% total speedup.

Profiling git annex find --not --in web, it's now bytestring end-to-end,
and there is only a little added overhead in eg accessing the Annex
state MVar (3%). The rest of the runtime is spent reading symlinks, and
in attoparsec.

This feels like the end of the optimisation road, without a major change
like caching information for faster queries.

6 years agocache annex index filename for 1.5% speedup to queries
Joey Hess [Fri, 10 Apr 2020 17:37:04 +0000 (13:37 -0400)]
cache annex index filename for 1.5% speedup to queries

6 years agorename bugs/fsck_lies_about_checksum__63__.mdwn to bugs/fsck_tells___39__ok__39___als...
christoph@62dc589e980f444024ff1a9808022914e056f386 [Fri, 10 Apr 2020 12:06:52 +0000 (12:06 +0000)]
rename bugs/fsck_lies_about_checksum__63__.mdwn to bugs/fsck_tells___39__ok__39___also_if_no_file_present.mdwn

6 years ago(no commit message)
christoph@62dc589e980f444024ff1a9808022914e056f386 [Fri, 10 Apr 2020 12:04:29 +0000 (12:04 +0000)]

6 years ago(no commit message)
christoph@62dc589e980f444024ff1a9808022914e056f386 [Fri, 10 Apr 2020 12:02:35 +0000 (12:02 +0000)]

6 years agonew optimisation target
Joey Hess [Thu, 9 Apr 2020 18:09:41 +0000 (14:09 -0400)]
new optimisation target

6 years agoSped up query commands that read the git-annex branch by around 5%
Joey Hess [Thu, 9 Apr 2020 17:54:43 +0000 (13:54 -0400)]
Sped up query commands that read the git-annex branch by around 5%

The only price paid is one additional MVar read per write to the journal.
Presumably writing a journal file dominiates over a MVar read time by
several orders of magnitude.

--batch does not get the speedup because then it needs to notice when
another process has made a change. Also made the assistant and other damon
modes bypass the optimisation, which would not help them anyway.

6 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 8 Apr 2020 18:12:20 +0000 (14:12 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

6 years agochangelog for ByteString Ref
Joey Hess [Wed, 8 Apr 2020 18:10:29 +0000 (14:10 -0400)]
changelog for ByteString Ref

6 years agoMerge branch 'bytestring-ref'
Joey Hess [Wed, 8 Apr 2020 18:10:24 +0000 (14:10 -0400)]
Merge branch 'bytestring-ref'

6 years agoremove unused import
Joey Hess [Wed, 8 Apr 2020 18:04:58 +0000 (14:04 -0400)]
remove unused import

6 years ago(no commit message)
Chymera [Wed, 8 Apr 2020 05:18:15 +0000 (05:18 +0000)]

6 years agoAdded a comment
yarikoptic [Wed, 8 Apr 2020 01:08:10 +0000 (01:08 +0000)]
Added a comment

6 years agoRef ByteString conversion done
Joey Hess [Tue, 7 Apr 2020 21:41:09 +0000 (17:41 -0400)]
Ref ByteString conversion done

Test suite passes.

6 years agocomment
Joey Hess [Tue, 7 Apr 2020 18:49:08 +0000 (14:49 -0400)]
comment

6 years agoAdded a comment
yarikoptic [Tue, 7 Apr 2020 18:25:46 +0000 (18:25 +0000)]
Added a comment

6 years agocomment
Joey Hess [Tue, 7 Apr 2020 17:46:10 +0000 (13:46 -0400)]
comment

6 years agoByteString Ref continued
Joey Hess [Tue, 7 Apr 2020 17:27:11 +0000 (13:27 -0400)]
ByteString Ref continued

Several nice speed wins I think.

At 340/633 files converted.

6 years agoByteString Ref continued
Joey Hess [Tue, 7 Apr 2020 15:54:27 +0000 (11:54 -0400)]
ByteString Ref continued

Attoparsec parser for diff-tree.

Changed fromRef back to producing a String, to avoid needing to convert
every use of it. However, this does mean I'm going to miss some
opportunities where fromRef is used and the result converted back to a
ByteString. Would be worth revisiting that at some point maybe.

6 years agoAdded a comment
kyle [Tue, 7 Apr 2020 15:30:55 +0000 (15:30 +0000)]
Added a comment

6 years agoinitial remote
yarikoptic [Mon, 6 Apr 2020 21:35:32 +0000 (21:35 +0000)]
initial remote

6 years agostarted converting Ref from String to ByteString
Joey Hess [Mon, 6 Apr 2020 21:14:49 +0000 (17:14 -0400)]
started converting Ref from String to ByteString

This should make code that reads shas and refs from git faster.

Does not compile yet, a lot needs to be done still.

6 years agobug: wanted=anything and deleted files
kyle [Mon, 6 Apr 2020 16:51:44 +0000 (16:51 +0000)]
bug: wanted=anything and deleted files

6 years agoupdate
Joey Hess [Sun, 5 Apr 2020 22:35:34 +0000 (18:35 -0400)]
update

6 years agoAdded a comment
javkalas@30f67400375ff022347b37236b63786ecf79cd82 [Fri, 3 Apr 2020 19:09:52 +0000 (19:09 +0000)]
Added a comment

6 years agoadb: Better messages when the adb command is not installed
Joey Hess [Thu, 2 Apr 2020 14:46:46 +0000 (10:46 -0400)]
adb: Better messages when the adb command is not installed

After a user completely ignored the display of the exception probably
because it didn't make sense..

This does make it a little bit slower since it checks adb is in path each
time before running it. Also, it might display a lot of warnings about it
not being installed.

This commit was sponsored by Ilya Shlyakhter on Patreon.

6 years agorespond to confused user and close non-bug
Joey Hess [Thu, 2 Apr 2020 00:40:43 +0000 (20:40 -0400)]
respond to confused user and close non-bug

6 years ago(no commit message)
mike@920d668f9cacd7a1a8886c180a95a0150e2ab283 [Thu, 2 Apr 2020 00:36:08 +0000 (00:36 +0000)]

6 years ago(no commit message)
mike@920d668f9cacd7a1a8886c180a95a0150e2ab283 [Thu, 2 Apr 2020 00:33:24 +0000 (00:33 +0000)]

6 years ago(no commit message)
mike@920d668f9cacd7a1a8886c180a95a0150e2ab283 [Thu, 2 Apr 2020 00:31:01 +0000 (00:31 +0000)]

6 years ago(no commit message)
mike@920d668f9cacd7a1a8886c180a95a0150e2ab283 [Thu, 2 Apr 2020 00:30:13 +0000 (00:30 +0000)]

6 years ago(no commit message)
mike@920d668f9cacd7a1a8886c180a95a0150e2ab283 [Thu, 2 Apr 2020 00:22:34 +0000 (00:22 +0000)]

6 years agoremoved
mike@920d668f9cacd7a1a8886c180a95a0150e2ab283 [Thu, 2 Apr 2020 00:06:54 +0000 (00:06 +0000)]
removed

6 years agoremoved
mike@920d668f9cacd7a1a8886c180a95a0150e2ab283 [Thu, 2 Apr 2020 00:06:22 +0000 (00:06 +0000)]
removed

6 years agoAdded a comment
mike@920d668f9cacd7a1a8886c180a95a0150e2ab283 [Wed, 1 Apr 2020 23:37:55 +0000 (23:37 +0000)]
Added a comment