Re: inventory of files unavailable in local repository?

2011-12-23 Thread Joey Hess
Adam Spiers wrote:
 Furthermore,
 
     git annex whereis --not --in=
 
 lists all files, not just the ones which aren't locally available.

joey@gnu:~/lib/soundgit annex whereis --not --in=   
git-annex: no remote specified

If your mailer is eating trailing periods or something.. whereis --not --in=.
works as expected here, only displaying anything for non-present files.

-- 
see shy jo


signature.asc
Description: Digital signature
___
vcs-home mailing list
vcs-home@lists.madduck.net
http://lists.madduck.net/listinfo/vcs-home

Re: inventory of files unavailable in local repository?

2011-12-23 Thread Adam Spiers
On Fri, Dec 23, 2011 at 5:13 PM, Joey Hess j...@kitenet.net wrote:
 Adam Spiers wrote:
 I don't get that error message.

 version?

3.20111211

 So, your git-annex version was, apparently, seeing --in= as in the
 remote named '', and doing the expensive query of git for that info..
 or something. Hmm, I vaguely think I might have fixed a bug like that at
 some point.

Maybe not released yet?
___
vcs-home mailing list
vcs-home@lists.madduck.net
http://lists.madduck.net/listinfo/vcs-home


Re: inventory of files unavailable in local repository?

2011-12-23 Thread Joey Hess
Adam Spiers wrote:
 On Fri, Dec 23, 2011 at 5:13 PM, Joey Hess j...@kitenet.net wrote:
  Adam Spiers wrote:
  I don't get that error message.
 
  version?
 
 3.20111211
 
  So, your git-annex version was, apparently, seeing --in= as in the
  remote named '', and doing the expensive query of git for that info..
  or something. Hmm, I vaguely think I might have fixed a bug like that at
  some point.
 
 Maybe not released yet?

Aha.. no, what's really happening is you have a remote with a
description of , and so it thinks that is the one you mean. I have
added a special case to not match on such empty descriptions.

-- 
see shy jo


signature.asc
Description: Digital signature
___
vcs-home mailing list
vcs-home@lists.madduck.net
http://lists.madduck.net/listinfo/vcs-home

Re: inventory of files unavailable in local repository?

2011-12-23 Thread Adam Spiers
On Fri, Dec 23, 2011 at 6:08 PM, Joey Hess j...@kitenet.net wrote:
 Adam Spiers wrote:
 On Fri, Dec 23, 2011 at 5:13 PM, Joey Hess j...@kitenet.net wrote:
  Adam Spiers wrote:
  I don't get that error message.
 
  version?

 3.20111211

  So, your git-annex version was, apparently, seeing --in= as in the
  remote named '', and doing the expensive query of git for that info..
  or something. Hmm, I vaguely think I might have fixed a bug like that at
  some point.

 Maybe not released yet?

 Aha.. no, what's really happening is you have a remote with a
 description of , and so it thinks that is the one you mean. I have
 added a special case to not match on such empty descriptions.

Ahah - thanks! :)
___
vcs-home mailing list
vcs-home@lists.madduck.net
http://lists.madduck.net/listinfo/vcs-home


Re: inventory of files unavailable in local repository?

2011-12-22 Thread Adam Spiers
On Thu, Dec 22, 2011 at 8:36 PM, Richard Hartmann
richih.mailingl...@gmail.com wrote:
 Did you try --not?

Ahah!  I think this works:

git annex find --not --in=

Thanks!
___
vcs-home mailing list
vcs-home@lists.madduck.net
http://lists.madduck.net/listinfo/vcs-home


Re: inventory of files unavailable in local repository?

2011-12-22 Thread Adam Spiers
On Thu, Dec 22, 2011 at 8:47 PM, Adam Spiers vcs-h...@adamspiers.org wrote:
 On Thu, Dec 22, 2011 at 8:36 PM, Richard Hartmann
 richih.mailingl...@gmail.com wrote:
 Did you try --not?

 Ahah!  I think this works:

    git annex find --not --in=

 Thanks!

Unfortunately this is cripplingly slow:

$ time symlinks -r . | egrep '^dangling: .+/\.git/annex/objects/' |
awk '{print $2}' /dev/null
symlinks -r .  0.15s user 0.37s system 97% cpu 0.536 total
egrep '^dangling: .+/\.git/annex/objects/'  0.01s user 0.00s system 1%
cpu 0.534 total
awk '{print $2}'  /dev/null  0.00s user 0.00s system 1% cpu 0.526 total

$ time git annex find --not --in= /dev/null
git annex find --not --in=  /dev/null  6.73s user 1.76s system 21%
cpu 39.483 total

Ouch!  Joey, is there an optimization that can be made for the local case here?
___
vcs-home mailing list
vcs-home@lists.madduck.net
http://lists.madduck.net/listinfo/vcs-home