git-annex.git
5 years agofix hardcoded origin name in checkAdjustedClone
Joey Hess [Wed, 14 Apr 2021 22:53:27 +0000 (18:53 -0400)]
fix hardcoded origin name in checkAdjustedClone

init: Fix a crash when the repo's was cloned from a repo that had an
adjusted branch checked out, and the origin remote is not named "origin".

The only other hardcoding of the name of origin is in:

- Upgrade.V2, which can be ignored probably
- Annex.Branch, which doesn't fail if it has some other name, but just
  doesn't set up the git-annex branch with quite as linear a history in
  that case.

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 14 Apr 2021 22:50:14 +0000 (18:50 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agoremove part of comment that is no longer relevant
Joey Hess [Wed, 14 Apr 2021 22:32:15 +0000 (18:32 -0400)]
remove part of comment that is no longer relevant

5 years agocrippledfilesystem override not needed
kyle [Wed, 14 Apr 2021 21:26:32 +0000 (21:26 +0000)]
crippledfilesystem override not needed

5 years agoAdded a comment
yarikoptic [Wed, 14 Apr 2021 20:46:11 +0000 (20:46 +0000)]
Added a comment

5 years agobug: init crash with remote name other than "origin"
kyle [Wed, 14 Apr 2021 20:44:23 +0000 (20:44 +0000)]
bug: init crash with remote name other than "origin"

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 14 Apr 2021 20:20:13 +0000 (16:20 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agodirectory CoW on export
Joey Hess [Wed, 14 Apr 2021 20:17:43 +0000 (16:17 -0400)]
directory CoW on export

Completing Cow support for directory.

5 years agodirectory CoW on import
Joey Hess [Wed, 14 Apr 2021 20:10:09 +0000 (16:10 -0400)]
directory CoW on import

5 years agoAdded a comment
Lukey [Wed, 14 Apr 2021 20:06:31 +0000 (20:06 +0000)]
Added a comment

5 years agodirectory CoW on store
Joey Hess [Wed, 14 Apr 2021 19:11:00 +0000 (15:11 -0400)]
directory CoW on store

Not for exports to directory yet though.

5 years agodirectory CoW on retrieve
Joey Hess [Wed, 14 Apr 2021 18:43:08 +0000 (14:43 -0400)]
directory CoW on retrieve

directory: When cp supports reflinks, use it when getting content from a
directory special remote.

Not yet for imports from directory though, and not for store.

Note that, when it's chunked, using cp --reflink would not speed it up, and
when reflink was not supported, would unnecessarily write the chunk to a
file before reading it back in. So, only using a fileRetriever in the
NoChunks case is necessary to keep chunking fast.

fileCopier is told not to verify, because the special remote interface
does not yet support verification in passing. AFAICS, fileCopies can
never return False when not verifying so the added giveup should never
actually happen.

5 years agoAdded a comment: thanks
jbwexler@f0760d2c023f7660c38fb17889d4cd6930183696 [Wed, 14 Apr 2021 19:03:12 +0000 (19:03 +0000)]
Added a comment: thanks

5 years agocomment
Joey Hess [Wed, 14 Apr 2021 18:12:32 +0000 (14:12 -0400)]
comment

5 years agosplit out Annex.CopyFile
Joey Hess [Wed, 14 Apr 2021 18:06:43 +0000 (14:06 -0400)]
split out Annex.CopyFile

Goal is to use it in Remote.Directory, but also it's nice to shrink Remote.Git.

5 years agoAdded a comment: comment to joey response on cp --reflink workaround
yarikoptic [Wed, 14 Apr 2021 18:04:53 +0000 (18:04 +0000)]
Added a comment: comment to joey response on cp --reflink workaround

5 years agotag confirmed
Joey Hess [Wed, 14 Apr 2021 17:45:59 +0000 (13:45 -0400)]
tag confirmed

5 years agonote
Joey Hess [Wed, 14 Apr 2021 17:44:43 +0000 (13:44 -0400)]
note

5 years agocorrection
Joey Hess [Wed, 14 Apr 2021 17:42:37 +0000 (13:42 -0400)]
correction

5 years agocomment
Joey Hess [Wed, 14 Apr 2021 17:41:24 +0000 (13:41 -0400)]
comment

5 years agoupdate
Joey Hess [Wed, 14 Apr 2021 17:32:28 +0000 (13:32 -0400)]
update

5 years agocomment
Joey Hess [Wed, 14 Apr 2021 17:31:08 +0000 (13:31 -0400)]
comment

5 years agofsck: avoid redundant checksum when transfer is Verified
Joey Hess [Wed, 14 Apr 2021 17:22:54 +0000 (13:22 -0400)]
fsck: avoid redundant checksum when transfer is Verified

When downloading content from a remote, if the content is able to be
verified during the transfer, skip checksumming it a second time.

Note that in this case, the fsck output does not include "(checksum)"
which it does when the checksumming is done separately from the download.

This commit was sponsored by Brock Spratlen on Patreon.

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 14 Apr 2021 16:55:18 +0000 (12:55 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years ago(no commit message)
Atemu [Wed, 14 Apr 2021 16:14:20 +0000 (16:14 +0000)]

5 years agois importtree CoW from directory?
yarikoptic [Wed, 14 Apr 2021 14:24:18 +0000 (14:24 +0000)]
is importtree CoW from directory?

5 years agoone-off unlocked annex files that go against largefiles configuration
kyle [Wed, 14 Apr 2021 01:08:08 +0000 (01:08 +0000)]
one-off unlocked annex files that go against largefiles configuration

5 years agocomment
Joey Hess [Tue, 13 Apr 2021 23:58:35 +0000 (19:58 -0400)]
comment

5 years ago(no commit message)
jbwexler@f0760d2c023f7660c38fb17889d4cd6930183696 [Tue, 13 Apr 2021 23:40:00 +0000 (23:40 +0000)]

5 years agofix comment location
Joey Hess [Tue, 13 Apr 2021 20:34:36 +0000 (16:34 -0400)]
fix comment location

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 13 Apr 2021 20:32:00 +0000 (16:32 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agocomment
Joey Hess [Tue, 13 Apr 2021 20:31:27 +0000 (16:31 -0400)]
comment

5 years agoAdded a comment: hybrid encryption
Ilya_Shlyakhter [Tue, 13 Apr 2021 20:30:45 +0000 (20:30 +0000)]
Added a comment: hybrid encryption

5 years agoAdded a comment: Can I manually decrypt my files?
datamanager [Tue, 13 Apr 2021 20:04:32 +0000 (20:04 +0000)]
Added a comment: Can I manually decrypt my files?

5 years agoforget: Preserve currently exported trees
Joey Hess [Tue, 13 Apr 2021 19:00:23 +0000 (15:00 -0400)]
forget: Preserve currently exported trees

Avoiding problems with exporttree remotes in some unusual circumstances.

This commit was sponsored by Brett Eisenberg on Patreon.

5 years agothoughts
Joey Hess [Tue, 13 Apr 2021 18:41:27 +0000 (14:41 -0400)]
thoughts

5 years agosplit out Logs.Export.Pure
Joey Hess [Tue, 13 Apr 2021 18:06:40 +0000 (14:06 -0400)]
split out Logs.Export.Pure

This will allow Annex.Branch to use it, in transitions code.

This commit was sponsored by Luke Shumaker on Patreon.

5 years agocomment
Joey Hess [Tue, 13 Apr 2021 17:41:48 +0000 (13:41 -0400)]
comment

5 years agoidea
Joey Hess [Tue, 13 Apr 2021 17:41:36 +0000 (13:41 -0400)]
idea

5 years agobug report
Joey Hess [Tue, 13 Apr 2021 17:31:51 +0000 (13:31 -0400)]
bug report

5 years agochange back to git-remote-gcrypt 1.4 url forms, with a note that that version is...
Joey Hess [Tue, 13 Apr 2021 16:55:50 +0000 (12:55 -0400)]
change back to git-remote-gcrypt 1.4 url forms, with a note that that version is needed

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 13 Apr 2021 16:45:40 +0000 (12:45 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agoupdate
Joey Hess [Mon, 12 Apr 2021 18:13:44 +0000 (14:13 -0400)]
update

5 years agofix URI for rsync over ssh as per woffs' suggestion in #git-annex
https://launchpad.net/~r0lf [Mon, 12 Apr 2021 17:44:06 +0000 (17:44 +0000)]
fix URI for rsync over ssh as per woffs' suggestion in #git-annex

5 years agofix URI for rsync over ssh as per woffs' suggestion in #git-annex
https://launchpad.net/~r0lf [Mon, 12 Apr 2021 17:42:25 +0000 (17:42 +0000)]
fix URI for rsync over ssh as per woffs' suggestion in #git-annex

5 years agoupdate
Joey Hess [Mon, 12 Apr 2021 17:00:24 +0000 (13:00 -0400)]
update

5 years agocomment and analysis
Joey Hess [Mon, 12 Apr 2021 16:54:46 +0000 (12:54 -0400)]
comment and analysis

5 years agoAdded a comment
Ilya_Shlyakhter [Mon, 12 Apr 2021 15:39:31 +0000 (15:39 +0000)]
Added a comment

5 years agoremoved
DeweyA123 [Mon, 12 Apr 2021 15:15:43 +0000 (15:15 +0000)]
removed

5 years agoremoved
DeweyA123 [Mon, 12 Apr 2021 15:14:40 +0000 (15:14 +0000)]
removed

5 years agoAdded a comment: Waiting as well
DeweyA123 [Mon, 12 Apr 2021 15:12:53 +0000 (15:12 +0000)]
Added a comment: Waiting as well

5 years agoAdded a comment: Waiting as well
DeweyA123 [Mon, 12 Apr 2021 15:12:31 +0000 (15:12 +0000)]
Added a comment: Waiting as well

5 years agoAdded a comment: Waiting as well
DeweyA123 [Mon, 12 Apr 2021 15:12:07 +0000 (15:12 +0000)]
Added a comment: Waiting as well

5 years agoAdded a comment
Ilya_Shlyakhter [Mon, 12 Apr 2021 14:42:13 +0000 (14:42 +0000)]
Added a comment

5 years agoAdded a comment: un-adding annexed files
Ilya_Shlyakhter [Mon, 12 Apr 2021 14:18:46 +0000 (14:18 +0000)]
Added a comment: un-adding annexed files

5 years agoAdded a comment: un-adding annexed files
Ilya_Shlyakhter [Mon, 12 Apr 2021 14:18:22 +0000 (14:18 +0000)]
Added a comment: un-adding annexed files

5 years agoAdded a comment
Atemu [Mon, 12 Apr 2021 09:46:05 +0000 (09:46 +0000)]
Added a comment

5 years agoAdded a comment: lockContent for special remotes w/o changing the protocol
Ilya_Shlyakhter [Mon, 12 Apr 2021 01:20:16 +0000 (01:20 +0000)]
Added a comment: lockContent for special remotes w/o changing the protocol

5 years agoAdded a comment: un-adding a key
Ilya_Shlyakhter [Mon, 12 Apr 2021 00:50:42 +0000 (00:50 +0000)]
Added a comment: un-adding a key

5 years agoAdded a comment
Atemu [Sun, 11 Apr 2021 10:54:43 +0000 (10:54 +0000)]
Added a comment

5 years agoAdded a comment
Atemu [Sat, 10 Apr 2021 17:12:30 +0000 (17:12 +0000)]
Added a comment

5 years ago(no commit message)
Atemu [Sat, 10 Apr 2021 16:47:07 +0000 (16:47 +0000)]

5 years agoAdded a comment
Atemu [Thu, 8 Apr 2021 19:33:49 +0000 (19:33 +0000)]
Added a comment

5 years agoadd 2 missing man page files to cabal file
Joey Hess [Thu, 8 Apr 2021 18:39:52 +0000 (14:39 -0400)]
add 2 missing man page files to cabal file

Only useful when using cabal install to install it with man pages.
It's hard to remember to list new man page files here.

5 years agodiffdriver: Support unlocked files
Joey Hess [Thu, 8 Apr 2021 18:32:09 +0000 (14:32 -0400)]
diffdriver: Support unlocked files

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Thu, 8 Apr 2021 17:59:04 +0000 (13:59 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agocomment
Joey Hess [Thu, 8 Apr 2021 17:51:43 +0000 (13:51 -0400)]
comment

5 years agonote on the order
yarikoptic [Thu, 8 Apr 2021 17:47:22 +0000 (17:47 +0000)]
note on the order

5 years agoinitial report on diff driver behavior on unlocked files
yarikoptic [Thu, 8 Apr 2021 17:44:39 +0000 (17:44 +0000)]
initial report on diff driver behavior on unlocked files

5 years agocomment
Joey Hess [Thu, 8 Apr 2021 17:21:30 +0000 (13:21 -0400)]
comment

5 years agocomment typo
Joey Hess [Thu, 8 Apr 2021 17:08:01 +0000 (13:08 -0400)]
comment typo

5 years agocomment
Joey Hess [Thu, 8 Apr 2021 16:57:57 +0000 (12:57 -0400)]
comment

5 years agoAdded a comment: Workaround
Atemu [Thu, 8 Apr 2021 14:02:54 +0000 (14:02 +0000)]
Added a comment: Workaround

5 years ago(no commit message)
Atemu [Thu, 8 Apr 2021 12:08:27 +0000 (12:08 +0000)]

5 years agofix url
Atemu [Thu, 8 Apr 2021 11:56:13 +0000 (11:56 +0000)]
fix url

5 years ago(no commit message)
Atemu [Thu, 8 Apr 2021 11:50:59 +0000 (11:50 +0000)]

5 years agoMerge branch 'master' of /home/b-git-annex/source
admin [Wed, 7 Apr 2021 16:52:43 +0000 (16:52 +0000)]
Merge branch 'master' of /home/b-git-annex/source

5 years agoAdded a comment: running untrusted code
Ilya_Shlyakhter [Wed, 7 Apr 2021 16:52:42 +0000 (16:52 +0000)]
Added a comment: running untrusted code

5 years agoremove webapp debug check box
Joey Hess [Tue, 6 Apr 2021 21:20:47 +0000 (17:20 -0400)]
remove webapp debug check box

It can't enable or disable debug output, after recent changes, w/o
restarting git-annex, or perhaps messing with the Annex monad's
internals. Doesn't seem worth supporting it any longer.

5 years agocomment and close, open related todo
Joey Hess [Tue, 6 Apr 2021 20:51:38 +0000 (16:51 -0400)]
comment and close, open related todo

5 years agofastDebug Annex.Branch reads and writes
Joey Hess [Tue, 6 Apr 2021 20:48:24 +0000 (16:48 -0400)]
fastDebug Annex.Branch reads and writes

Reads of cached data are not debugged, only cache misses are, and since
many commands pre-cache location log data, this avoids a slew of
fastDebug calls when running commands such as git-annex get --from

5 years agofix fastDebug to check if debugging is actually enabled
Joey Hess [Tue, 6 Apr 2021 20:28:37 +0000 (16:28 -0400)]
fix fastDebug to check if debugging is actually enabled

Had to add to AnnexRead an indication of whether debugging is enabled.

Could have just made setupConsole not install a debug output action that
outputs, and have enableDebug be what installs that, but then in the
common case where there is no debug selector, and so all debug output is
selected, it would run the debug output action every time, which entails
an IORef access. Which would make fastDebug too slow..

5 years agouse fastDebug everywhere it can be used
Joey Hess [Tue, 6 Apr 2021 19:41:24 +0000 (15:41 -0400)]
use fastDebug everywhere it can be used

None of these are likely to yeild a noticable speedup though.

5 years agoimplement fastDebug
Joey Hess [Tue, 6 Apr 2021 19:14:00 +0000 (15:14 -0400)]
implement fastDebug

Most of the changes here involve global option parsing: GlobalSetter
changed so it can both run an Annex action to set state, but can also
change the AnnexRead value, which is immutable once the Annex monad is
running.

That allowed a debugselector value to be added to AnnexRead, seeded
from the git config. The --debugfilter option's GlobalSetter then updates
the AnnexRead.

This improved GlobalSetter can later be used to move more stuff to
AnnexRead. Things that don't involve a git config will be easier to
move, and probably a *lot* of things can be moved eventually.

fastDebug, while implemented, is not used anywhere yet. But it should be
fast..

5 years agosemigroup and monoid instances for DebugSelector
Joey Hess [Tue, 6 Apr 2021 16:45:30 +0000 (12:45 -0400)]
semigroup and monoid instances for DebugSelector

mempty is NoDebugSelector, so it does not default to matching
everything, or nothing, in a chain like foo <> mempty

5 years agorefactoring
Joey Hess [Tue, 6 Apr 2021 16:22:56 +0000 (12:22 -0400)]
refactoring

Moving argument parsing to before Annex monad code
is a first step toward letting argument parsing set
AnnexRead values, which are immutable inside that monad.

5 years agocomment
Joey Hess [Mon, 5 Apr 2021 19:47:42 +0000 (15:47 -0400)]
comment

5 years agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 5 Apr 2021 19:32:08 +0000 (15:32 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

5 years agoadded --debugfilter (and annex.debugfilter)
Joey Hess [Mon, 5 Apr 2021 19:21:20 +0000 (15:21 -0400)]
added --debugfilter (and annex.debugfilter)

5 years agoswitch from hslogger to purpose-built Utility.Debug
Joey Hess [Mon, 5 Apr 2021 17:40:31 +0000 (13:40 -0400)]
switch from hslogger to purpose-built Utility.Debug

This uses a DebugSelector, rather than debug levels, which will allow
for a later option like --debug-from=Process to only
see debuging about running processes.

The module name that contains the thing being debugged is used as the
DebugSelector (in most cases; does not need to be a hard and fast rule).
Debug calls were changed to add that. hslogger did not display
that first parameter to debugM, but the DebugSelector does get
displayed.

Also fastDebug will allow doing debugging in places that are used in
tight loops, with the DebugSelector coming from the Annex Reader
essentially for free. Not done yet.

5 years agoupdate
Joey Hess [Mon, 5 Apr 2021 14:56:07 +0000 (10:56 -0400)]
update

5 years ago(no commit message)
Atemu [Mon, 5 Apr 2021 09:31:48 +0000 (09:31 +0000)]

5 years agoAdded a comment: still an issue in Ubuntu Focal
https://launchpad.net/~r0lf [Mon, 5 Apr 2021 01:28:49 +0000 (01:28 +0000)]
Added a comment: still an issue in Ubuntu Focal

5 years agoremoved
https://launchpad.net/~r0lf [Mon, 5 Apr 2021 01:22:24 +0000 (01:22 +0000)]
removed

5 years agoAdded a comment: still an issue in focal
https://launchpad.net/~r0lf [Mon, 5 Apr 2021 01:20:30 +0000 (01:20 +0000)]
Added a comment: still an issue in focal

5 years ago(no commit message)
Atemu [Sun, 4 Apr 2021 09:23:41 +0000 (09:23 +0000)]

5 years agostart splitting out readonly values from AnnexState
Joey Hess [Fri, 2 Apr 2021 19:26:21 +0000 (15:26 -0400)]
start splitting out readonly values from AnnexState

Values in AnnexRead can be read more efficiently, without MVar overhead.
Only a few things have been moved into there, and the performance
increase so far is not likely to be noticable.

This is groundwork for putting more stuff in there, particularly a value
that indicates if debugging is enabled.

The obvious next step is to change option parsing to not run in the
Annex monad to set values in AnnexState, and instead return a pure value
that gets stored in AnnexRead.

5 years agocomments
Joey Hess [Fri, 2 Apr 2021 17:41:26 +0000 (13:41 -0400)]
comments

5 years agoAvoid excess commits to the git-annex branch when stall detection is enabled
Joey Hess [Fri, 2 Apr 2021 15:56:50 +0000 (11:56 -0400)]
Avoid excess commits to the git-annex branch when stall detection is enabled

When git-annex transferrer started up, and the journal contained something,
it would commit it to the git-annex branch. This caused excess commits to
the branch, in cases where normally several changes would be journalled and
committed together. That generated some excess git objects and was also
just noisy on stdout.

Since transferrer uses enableInteractiveBranchAccess, it does not need to
commit journalled changes, since the optimisation that avoids checking
the journal when reading from the branch is disabled for processes that
call that.

This commit was sponsored by Svenne Krap on Patreon.

5 years agoimprove comment
Joey Hess [Fri, 2 Apr 2021 14:35:15 +0000 (10:35 -0400)]
improve comment