thanks, and season's greetings

2011-12-23 Thread Adam Spiers
I've spent virtually the whole of the last two days importing two enormous directory hierarchies into git-annex - one for my camera photos/videos, and another for all my music-related files. It took that long partially due to the learning curve, but mainly due to having to manually decide which fi

git annex add silently ignores non-existent files

2011-12-23 Thread Adam Spiers
git annex add this_file_does_not_exist does not result in a warning. This leads to confusing (lack of) behaviour in certain cases, e.g. generate_a_list_of_files_some_of_which_contain_spaces | xargs git annex add would silently fail to add the files containing spaces (because you'd need

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 wrote: > Adam Spiers wrote: >> On Fri, Dec 23, 2011 at 5:13 PM, Joey Hess 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 t

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 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 gi

Re: vcsh: making $VCSH_BASE a per-repository property?

2011-12-23 Thread Richard Hartmann
I can simply have vcsh read out vcsh.base from git's config, but I am not sure if that doesn't lead to chicken/egg situations when cloning... If you have any ideas, do lot me know. You can always set VCSH_BASE in your mr config, that will override $HOME. Richard _

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 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,

Re: inventory of files unavailable in local repository?

2011-12-23 Thread Joey Hess
Adam Spiers wrote: > I don't get that error message. version? > > whereis --not --in=. > > works as expected here, only displaying anything for non-present files. > > Ah, thanks - that works and is WAY faster. So, your git-annex version was, apparently, seeing "--in=" as "in the remote named ''

Re: inventory of files unavailable in local repository?

2011-12-23 Thread Adam Spiers
On Fri, Dec 23, 2011 at 3:40 PM, Joey Hess wrote: > Adam Spiers wrote: >> Furthermore, >> >>     git annex whereis --not --in= >> >> lists all files, not just the ones which aren't locally available. > > joey@gnu:~/lib/sound>git annex whereis --not --in= > git-annex: no remote specified I don't g

Re: inventory of files unavailable in local repository?

2011-12-23 Thread Adam Spiers
On Fri, Dec 23, 2011 at 3:37 PM, Joey Hess wrote: > Adam Spiers wrote: >> $ 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?

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/sound>git annex whereis --not --in= git-annex: no remote specified If your mailer is eating trailing periods or something.. wherei

Re: inventory of files unavailable in local repository?

2011-12-23 Thread Joey Hess
Adam Spiers wrote: > $ 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? For --in=. , the optimisation of statting the files, rathe

Re: mr: specifying libraries to be sourced in a path-independent way

2011-12-23 Thread Sean Whitton
Would love this feature. Currently resort to having a copy of vcsh in ~/local/lib/ because on different systems I use it is in a different place. S pgpwsVeUWn66N.pgp Description: PGP signature ___ vcs-home mailing list vcs-home@lists.madduck.net http:

Re: supporting roaming via git URL rewriting

2011-12-23 Thread Adam Spiers
On Fri, Dec 23, 2011 at 3:01 PM, Adam Spiers wrote: > In the USB case, it's as simple as: > >    shorthost="${HOST%%.*}" Sorry, one of these two might work better depending on your OS and shell: shorthost="${HOSTNAME%%.*}" shorthost=`hostname -s` Careful with that last one on non-Linux

Re: supporting roaming via git URL rewriting

2011-12-23 Thread Adam Spiers
On Fri, Dec 23, 2011 at 1:17 PM, Dieter Plaetinck wrote: > On Fri, 23 Dec 2011 07:41:29 +1000 > Bruce Schultz wrote: > >> I solved that situation by adding the external name (ie >> public.adamspiers.org) to the DNS on my ADSL router. >> >> So if I'm on my LAN at home, public.adamspiers.org -> 10.

mr: specifying libraries to be sourced in a path-independent way

2011-12-23 Thread Dieter Plaetinck
Hi, vcsh+mr users now need to add this to ~/.mrconfig: include = cat /usr/share/mr/vcsh apparently, this is how one should tell mr how to source one of its libraries. but I see two problems: 1) path of libraries can change when updating system (mr package) 2) path of libraries can differ accross m

vcsh: making $VCSH_BASE a per-repository property?

2011-12-23 Thread Dieter Plaetinck
I would like to maintain a set of vcsh repositories as root user, both in /root and /etc; i.e. I have multiple possible $VCSH_BASE's with each a set of vcsh git repositories. currently $VCSH_BASE is configured inside the vcsh script itself and can be overridden by setting the environment variab

Re: supporting roaming via git URL rewriting

2011-12-23 Thread Dieter Plaetinck
On Fri, 23 Dec 2011 07:41:29 +1000 Bruce Schultz wrote: > I solved that situation by adding the external name (ie > public.adamspiers.org) to the DNS on my ADSL router. > > So if I'm on my LAN at home, public.adamspiers.org -> 10.0.0.12 > > But if I'm away from the house, its port forwarded thr

Re: supporting roaming via git URL rewriting

2011-12-23 Thread Sean Whitton
I wonder why it would not be easier just to edit one’s SSH config. When my laptop moves IP address, I just change the entries in .ssh/config, and as my remote is specified as ssh://artemis/~/var/, git can’t tell the difference. Any reason this won’t work? , | Host artemis | User swhitton | H