Fix a bug in find --batch in the previous version.
This commit is contained in:
parent
8499c6d65a
commit
abd56fb019
5 changed files with 20 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
git-annex (8.20200720.1) UNRELEASED; urgency=medium
|
||||
|
||||
* Fix a bug in find --batch in the previous version.
|
||||
|
||||
-- Joey Hess <id@joeyh.name> Mon, 20 Jul 2020 19:37:40 -0400
|
||||
|
||||
git-annex (8.20200720) upstream; urgency=medium
|
||||
|
||||
* import: Added --no-content option, which avoids downloading files
|
||||
|
|
|
@ -18,6 +18,7 @@ import Types.Key
|
|||
import Git.FilePath
|
||||
import qualified Utility.Format
|
||||
import Utility.DataUnits
|
||||
import Annex.Content
|
||||
|
||||
cmd :: Command
|
||||
cmd = notBareRepo $ withGlobalOptions [annexedMatchingOptions] $ mkCommand $
|
||||
|
@ -70,9 +71,10 @@ seek o = case batchOption o of
|
|||
(withFilesInGitAnnex ww seeker)
|
||||
=<< workTreeItems ww (findThese o)
|
||||
Batch fmt -> batchFilesMatching fmt
|
||||
(whenAnnexed go . toRawFilePath)
|
||||
(whenAnnexed gobatch . toRawFilePath)
|
||||
where
|
||||
go = start o
|
||||
gobatch f k = stopUnless (limited <||> inAnnex k) (go f k)
|
||||
ww = WarnUnmatchLsFiles
|
||||
|
||||
start :: FindOptions -> RawFilePath -> Key -> CommandStart
|
||||
|
|
|
@ -61,3 +61,8 @@ local repository version: 8
|
|||
|
||||
[[!meta author=kyle]]
|
||||
[[!tag projects/datalad]]
|
||||
|
||||
> [[fixed|done]], and audited for any other similar reversions.
|
||||
>
|
||||
> Unfortunately did not see this bug before the release,
|
||||
> so I should make a point release for it. --[[Joey]]
|
||||
|
|
|
@ -37,8 +37,12 @@ and precache them.
|
|||
> > > Still todo:
|
||||
> > >
|
||||
> > > * move, copy, drop, and mirror were left not using the location log caching yet
|
||||
> > > * find has a bit of ugliness around batch mode, and this shows it
|
||||
> > > would be worth making the batch mode take the same AnnexedFileSeeker,
|
||||
> > > to reunify the batch and non-batch code
|
||||
> > > * get is left with an unncessary inAnnex check so could be sped up
|
||||
> > > a little bit more
|
||||
> > > a little bit more. Above improvements to batch mode would allow
|
||||
> > > fixing this.
|
||||
> > >
|
||||
|
||||
Another thing that the same cat-file --buffer approach could be used with
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Name: git-annex
|
||||
Version: 8.20200720
|
||||
Version: 8.20200720.1
|
||||
Cabal-Version: >= 1.10
|
||||
License: AGPL-3
|
||||
Maintainer: Joey Hess <id@joeyh.name>
|
||||
|
|
Loading…
Add table
Reference in a new issue