jwodder [Mon, 7 Jun 2021 14:32:25 +0000 (14:32 +0000)]
Ilya_Shlyakhter [Mon, 7 Jun 2021 14:31:52 +0000 (14:31 +0000)]
removed
Ilya_Shlyakhter [Mon, 7 Jun 2021 14:26:57 +0000 (14:26 +0000)]
Added a comment: specifying preferred content by metadata
Ilya_Shlyakhter [Mon, 7 Jun 2021 14:26:27 +0000 (14:26 +0000)]
Added a comment: specifying preferred content by metadata
Atemu [Sun, 6 Jun 2021 20:47:31 +0000 (20:47 +0000)]
Added a comment
Lukey [Sun, 6 Jun 2021 18:01:08 +0000 (18:01 +0000)]
Added a comment
Atemu [Sun, 6 Jun 2021 17:18:14 +0000 (17:18 +0000)]
Atemu [Sun, 6 Jun 2021 16:50:40 +0000 (16:50 +0000)]
rename bugs/delayadd_doesn__39__t_work.mdwn to bugs/delayadd_doesn__39__t_work_with_smallfiles.mdwn
Added a comment: using import tree and export tree
falsifian [Sat, 5 Jun 2021 20:31:39 +0000 (20:31 +0000)]
Add bug report
yarikoptic [Sat, 5 Jun 2021 13:50:43 +0000 (13:50 +0000)]
Added a comment
yarikoptic [Sat, 5 Jun 2021 13:23:13 +0000 (13:23 +0000)]
Initial report on performance regression
alt [Sat, 5 Jun 2021 13:07:48 +0000 (13:07 +0000)]
Added a comment
Added a comment
Ilya_Shlyakhter [Fri, 4 Jun 2021 22:15:33 +0000 (22:15 +0000)]
Added a comment: "why all these wild ideas are being thrown out there"
Joey Hess [Fri, 4 Jun 2021 20:45:02 +0000 (16:45 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Fri, 4 Jun 2021 20:43:47 +0000 (16:43 -0400)]
--size-limit exit 101
Sponsored-by: Mark Reidenbach on Patreon
Atemu [Fri, 4 Jun 2021 20:26:27 +0000 (20:26 +0000)]
Joey Hess [Fri, 4 Jun 2021 20:08:42 +0000 (16:08 -0400)]
add --size-limit option
When this option is not used, there should be effectively no added
overhead, thanks to the optimisation in
b3cd0cc6ba4e5b9e2ae0abd9c8b2ec32475e09d2.
When an action fails on a file, the size of the file still counts toward
the size limit. This was necessary to support concurrency, but also
generally seems like the right choice.
Most commands that operate on annexed files support the option.
export and import do not, and I don't know if it would make sense for
export to.. Why would you want an incomplete export? sync doesn't, and
while it would be easy to make it support it for transferring files,
it's not clear if dropping files should also take the size limit into
account. Commands like add that don't operate on annexed files don't
support the option either.
Exiting 101 not yet implemented.
Sponsored-by: Denis Dzyubenko on Patreon
Joey Hess [Fri, 4 Jun 2021 18:56:31 +0000 (14:56 -0400)]
minor optimisation
Avoid a second mvar access.
Sponsored-by: Jochen Bartl on Patreon
Joey Hess [Fri, 4 Jun 2021 18:00:58 +0000 (14:00 -0400)]
comment
Joey Hess [Fri, 4 Jun 2021 17:53:24 +0000 (13:53 -0400)]
comment
Joey Hess [Fri, 4 Jun 2021 17:36:51 +0000 (13:36 -0400)]
comment
Joey Hess [Fri, 4 Jun 2021 17:16:48 +0000 (13:16 -0400)]
avoid displaying the scanning annexed files message when repo is not large
Avoids users thinking this scan is a big deal, when it's not in the
majority of repos.
showSideActionAfter has some ugly caveats, since it has to display in
the background of another action. I could not see a better way to do it
and it works fine in this particular case. It also doesn't really belong
in Annex.Concurrent, but cannot go in Messages due to an import loop.
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Fri, 4 Jun 2021 17:14:29 +0000 (13:14 -0400)]
comment
yarikoptic [Fri, 4 Jun 2021 15:20:34 +0000 (15:20 +0000)]
about "scanning for annexed" while in git-annex branch
alt [Fri, 4 Jun 2021 10:13:06 +0000 (10:13 +0000)]
Added a comment
Atemu [Thu, 3 Jun 2021 13:36:20 +0000 (13:36 +0000)]
Ilya_Shlyakhter [Wed, 2 Jun 2021 17:02:58 +0000 (17:02 +0000)]
Added a comment: matching include/exclude based on file extension in the key
Ilya_Shlyakhter [Wed, 2 Jun 2021 16:53:03 +0000 (16:53 +0000)]
Added a comment: keys db optimization
Joey Hess [Tue, 1 Jun 2021 15:43:36 +0000 (11:43 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 1 Jun 2021 15:24:15 +0000 (11:24 -0400)]
avoid removing old associated file when there is a merge conflict
It makes sense to keep the key used by the old version of an
associated file, until the merge conflict is resolved.
Note that, since in this case git diff is being run with --index, it's
not possible to use -1 or -3, which would let the keys
associated with the new versions of the file also be added. That would
be better, because it's possible that the local modification to the file
that caused the merge conflict has not yet gotten its new key recorded
in the db.
Opened a bug about a case this is thus not able to address.
Sponsored-by: Boyd Stephen Smith Jr. on Patreon
Joey Hess [Tue, 1 Jun 2021 14:39:48 +0000 (10:39 -0400)]
todo
Ilya_Shlyakhter [Mon, 31 May 2021 23:15:21 +0000 (23:15 +0000)]
Added a comment: keys-to-paths db
Joey Hess [Mon, 31 May 2021 21:54:17 +0000 (17:54 -0400)]
comments
Ilya_Shlyakhter [Mon, 31 May 2021 20:50:36 +0000 (20:50 +0000)]
Added a comment: startup scan for files
Lukey [Mon, 31 May 2021 19:26:52 +0000 (19:26 +0000)]
Added a comment
Joey Hess [Mon, 31 May 2021 19:19:34 +0000 (15:19 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Lukey [Mon, 31 May 2021 19:17:44 +0000 (19:17 +0000)]
Added a comment
Joey Hess [Mon, 31 May 2021 19:15:09 +0000 (15:15 -0400)]
comment
Atemu [Mon, 31 May 2021 19:07:31 +0000 (19:07 +0000)]
Added a comment
Joey Hess [Mon, 31 May 2021 19:05:40 +0000 (15:05 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 31 May 2021 18:56:14 +0000 (14:56 -0400)]
speed up keys database writes
There seems to be no reason to check the time here. I think it was
inherited from code in Database.Fsck, which does have a reason to commit
every few minutes. Removing that syscall speeds up a git-annex init
in a repo with 100000 annexed files by about 3 seconds.
Sponsored-by: Dartmouth College's Datalad project
Atemu [Mon, 31 May 2021 18:59:15 +0000 (18:59 +0000)]
Atemu [Mon, 31 May 2021 18:42:56 +0000 (18:42 +0000)]
Joey Hess [Mon, 31 May 2021 17:40:42 +0000 (13:40 -0400)]
speed up initial scanning for annexed files
Streaming through git this way speeds it up by around 25%. This is
similar to the optimisations of seeking annexed files.
Sponsored-by: Dartmouth College's Datalad project
Atemu [Mon, 31 May 2021 18:19:42 +0000 (18:19 +0000)]
Joey Hess [Mon, 31 May 2021 14:51:39 +0000 (10:51 -0400)]
annex.supportunlocked should not prevent scan for annexed files
That scan used to be only for unlocked files, but no longer..
Joey Hess [Mon, 31 May 2021 14:50:22 +0000 (10:50 -0400)]
todo
Joey Hess [Mon, 31 May 2021 14:44:35 +0000 (10:44 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 31 May 2021 14:43:59 +0000 (10:43 -0400)]
comment
Ilya_Shlyakhter [Sun, 30 May 2021 19:43:27 +0000 (19:43 +0000)]
ikiwiki server slowdown
Ilya_Shlyakhter [Sun, 30 May 2021 19:40:51 +0000 (19:40 +0000)]
Added a comment: clarifying preferred content expressions
Lukey [Sat, 29 May 2021 17:22:40 +0000 (17:22 +0000)]
Added a comment
Steven [Sat, 29 May 2021 14:06:25 +0000 (14:06 +0000)]
Added a comment
frodo [Sat, 29 May 2021 13:51:50 +0000 (13:51 +0000)]
Added a comment
Lukey [Sat, 29 May 2021 13:40:04 +0000 (13:40 +0000)]
Added a comment
frodo [Sat, 29 May 2021 13:27:12 +0000 (13:27 +0000)]
Lukey [Sat, 29 May 2021 12:40:57 +0000 (12:40 +0000)]
Added a comment
Steven [Sat, 29 May 2021 00:14:31 +0000 (00:14 +0000)]
Added a comment: Using the --content flag
Steven [Sat, 29 May 2021 00:09:48 +0000 (00:09 +0000)]
Joey Hess [Thu, 27 May 2021 16:45:06 +0000 (12:45 -0400)]
devblog
Joey Hess [Thu, 27 May 2021 16:37:39 +0000 (12:37 -0400)]
Added annex.adviceNoSshCaching config.
Sponsored-by: Brock Spratlen on Patreon
Joey Hess [Thu, 27 May 2021 16:23:57 +0000 (12:23 -0400)]
comment
Joey Hess [Thu, 27 May 2021 16:19:35 +0000 (12:19 -0400)]
comment and reject todo
Joey Hess [Thu, 27 May 2021 16:14:29 +0000 (12:14 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Thu, 27 May 2021 16:13:49 +0000 (12:13 -0400)]
comment
Atemu [Wed, 26 May 2021 07:11:20 +0000 (07:11 +0000)]
Added a comment
Joey Hess [Tue, 25 May 2021 20:37:32 +0000 (16:37 -0400)]
comments
Joey Hess [Tue, 25 May 2021 17:10:34 +0000 (13:10 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 25 May 2021 17:05:42 +0000 (13:05 -0400)]
New matching options --excludesamecontent and --includesamecontent
The normalisation of filenames turns out to be the tricky part here,
because the associated files coming out of the keys db may look like
"./foo/bar" or "../bar". For the former to match a glob like "foo/*",
it needs to be normalised.
Note that, on windows, normalise "./foo/bar" = "foo\\bar"
which a glob like "foo/*" won't match. So the glob is matched a second
time, on the toInternalGitPath, so allowing the user to provide a glob
with the slashes in either direction. However, this still won't support
some wacky edge cases like the user providing a glob of "foo/bar\\*"
Sponsored-by: Dartmouth College's Datalad project
Lukey [Tue, 25 May 2021 16:48:26 +0000 (16:48 +0000)]
Added a comment
Joey Hess [Tue, 25 May 2021 15:45:02 +0000 (11:45 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 25 May 2021 15:43:52 +0000 (11:43 -0400)]
Merge branch 'trackassociated'
Joey Hess [Tue, 25 May 2021 15:43:46 +0000 (11:43 -0400)]
comments
Joey Hess [Tue, 25 May 2021 14:57:06 +0000 (10:57 -0400)]
prevent dropping required content of other file using same content
When two files have the same content, and a required content expression
matches one but not the other, dropping the latter file will fail as it
would also remove the content of the required file.
This will slow down drop (w/o --auto), dropunused, mirror, and move, by one
keys db lookup per file. But I did include an optimisation to avoid a
double db lookup in the drop --auto / sync --content case. I suspect that
dropunused could also use PreferredContentChecked True, but haven't
entirely thought it through and it's rarely used with enough files for the
optimisation to matter.
Sponsored-by: Dartmouth College's Datalad project
Atemu [Tue, 25 May 2021 14:51:21 +0000 (14:51 +0000)]
Joey Hess [Tue, 25 May 2021 14:08:29 +0000 (10:08 -0400)]
improve changelog
Joey Hess [Tue, 25 May 2021 14:04:29 +0000 (10:04 -0400)]
required content update
Joey Hess [Tue, 25 May 2021 13:58:46 +0000 (09:58 -0400)]
update
datamanager [Tue, 25 May 2021 13:10:35 +0000 (13:10 +0000)]
Added a comment: is there some way to remove a file I've commited?
Atemu [Tue, 25 May 2021 11:00:39 +0000 (11:00 +0000)]
Added a comment
Joey Hess [Mon, 24 May 2021 20:43:06 +0000 (16:43 -0400)]
comment
Joey Hess [Mon, 24 May 2021 20:31:58 +0000 (16:31 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 24 May 2021 20:31:14 +0000 (16:31 -0400)]
update
Joey Hess [Mon, 24 May 2021 20:27:24 +0000 (16:27 -0400)]
Merge branch 'master' into trackassociated
Joey Hess [Mon, 24 May 2021 20:27:07 +0000 (16:27 -0400)]
update
Joey Hess [Mon, 24 May 2021 20:24:53 +0000 (16:24 -0400)]
Merge branch 'master' into trackassociated
Joey Hess [Mon, 24 May 2021 19:31:06 +0000 (15:31 -0400)]
fix deadlock
git-annex test hung, at varying points depending
on when git decided to run the smudge clean filter.
Recent changes to reconcileStaged caused a deadlock, when git write-tree
for some reason decides to run the smudge clean filter. Which tries
to open the keys db, and blocks waiting for the lock file that its
grandparent has locked.
I don't know why git write-tree does that. It's supposed to only write a
tree from the index which needs no smudge/clean filtering.
I've verified that, in a situation where git write-tree runs the clean
filter, disabling the filter results in a tree being written that
contains the annex link, not eg, the worktree file content. So it seems
safe to disable the clean filter, but also this seems likely to be
working around a bug in git because it seems it is running the clean
filter in a situation where the object has already been cleaned.
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Mon, 24 May 2021 18:54:51 +0000 (14:54 -0400)]
clearer language
Joey Hess [Mon, 24 May 2021 18:46:59 +0000 (14:46 -0400)]
fix case where keys db was not initialized in time
When the keys db is opened for read, and did not exist yet, it used to
skip creating it, and return mempty values. But that prevents
reconcileStaged from populating associated files information in time for
the read. This fixes the one remaining case I know of where
the fix in
a56b151f9009590c97da8dbf66c1b138455657cb didn't work.
Note that, when there is a permissions error, it still avoids creating
the db and returns mempty for all queries. This does mean that
reconcileStaged does not run and so it may want to drop files that it
should not. However, presumably a permissions error on the keys database
also means that the user does not have permission to delete annex
objects, so they won't be able to drop the files anyway.
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Mon, 24 May 2021 18:02:50 +0000 (14:02 -0400)]
fix longstanding indeterminite preferred content for duplicated file problem
* drop: When two files have the same content, and a preferred content
expression matches one but not the other, do not drop the file.
* sync --content, assistant: Fix an edge case where a file that is not
preferred content did not get dropped.
The sync --content edge case is that handleDropsFrom loaded associated files
and used them without verifying that the information from the database was
not stale.
It seemed best to avoid changing --want-drop's behavior, this way when
debugging a preferred content expression with it, the files matched will
still reflect the expression. So added a note to the --want-drop documentation,
to make clear it may not behave identically to git-annex drop --auto.
While it would be possible to introspect the preferred content
expression to see if it matches on filenames, and only look up the
associated files when it does, it's generally fairly rare for 2 files to
have the same content, and the database lookup is already avoided when
there's only 1 file, so I did not implement that further optimisation.
Note that there are still some situations where the associated files
database does not get locked files recorded in it, which will prevent
this fix from working.
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Mon, 24 May 2021 17:53:28 +0000 (13:53 -0400)]
remove warning about combining options
the option parser no longer allows combining --want-get/--want-drop with
options like --all
Joey Hess [Mon, 24 May 2021 16:05:35 +0000 (12:05 -0400)]
note about a wart
All code that uses associated files already deals with this problem,
which used to be worse. Unfortunately I was not able to entirely
eliminate it, although it happens in fewer cases now.
Joey Hess [Mon, 24 May 2021 15:59:01 +0000 (11:59 -0400)]
update
Joey Hess [Mon, 24 May 2021 15:38:22 +0000 (11:38 -0400)]
refactoring
Joey Hess [Mon, 24 May 2021 15:33:23 +0000 (11:33 -0400)]
fixed reconcileStaged crash when index is locked or in conflict
Eg, when git commit runs the smudge filter.
Commit
428c91606b434512d1986622e751c795edf4df44 introduced the crash,
as write-tree fails in those situations. Now it will work, and git-annex
always gets up-to-date information even in those situations. It does
need to do a bit more work, each time git-annex is run with the index
locked. Although if the index is unmodified from the last time
write-tree succeeded, that work is avoided.
Joey Hess [Mon, 24 May 2021 14:24:53 +0000 (10:24 -0400)]
Merge branch 'master' into trackassociated
parhuzamos [Mon, 24 May 2021 09:33:50 +0000 (09:33 +0000)]
Added a comment
Ilya_Shlyakhter [Sun, 23 May 2021 20:39:23 +0000 (20:39 +0000)]
Added a comment: defining preferred content state