mr: trust errors cause "Use of uninitialized value" warnings

2011-12-22 Thread Adam Spiers
The trust error handling code expects five parameters: my $trusterror = sub { my $msg=shift; my ($err, $file, $lineno, $url)=@_; but it is only ever invoked with one, e.g. if (! $trusted && /[[:cntrl:]]/) { $trusterr

supporting roaming via git URL rewriting

2011-12-22 Thread Adam Spiers
I have some laptops with git(-annex) repositories on them. These are sometimes connected via wifi, other times via a cable, and obtain different IP addresses via DHCP depending on which is used. In the corresponding repositories on my static desktop machine, previously I used to deal with this by

inventory of files unavailable in local repository?

2011-12-22 Thread Adam Spiers
git annex find can provide an inventory of files whose content is available in the local repository. But is there a way of finding which files are *not* present locally? Checking for broken symlinks and filtering for /.git/annex/objects is kinda ugly. _

Re: supporting roaming via git URL rewriting

2011-12-22 Thread Richard Hartmann
Awesome! Solves a ton of issues with USB for me. Sent by mobile; excuse my brevity. ___ 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 Richard Hartmann
Did you try --not? Sent by mobile; excuse my brevity. ___ 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 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 wrote: > On Thu, Dec 22, 2011 at 8:36 PM, Richard Hartmann > 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: .+

Re: supporting roaming via git URL rewriting

2011-12-22 Thread Bruce Schultz
On 23/12/11 01:16, Adam Spiers wrote: > Here's another situation in which this inconvenience is more > pronounced: my main desktop machine "atlantic" is reachable both via > the LAN and via the internet (using port forwarding from my public > static IP). So if I'm on a laptop and pull from it via

Re: supporting roaming via git URL rewriting

2011-12-22 Thread Adam Spiers
On Thu, Dec 22, 2011 at 9:41 PM, Bruce Schultz wrote: > On 23/12/11 01:16, Adam Spiers wrote: >> Now I can configure a single remote pointing to my desktop machine, >> with URL "atlantic:path/to/repo".  When I leave the house, I run: >> >>   git url-rewrite atlantic: ssh://public.adamspiers.org/ho

Re: inventory of files unavailable in local repository?

2011-12-22 Thread Adam Spiers
On Thu, Dec 22, 2011 at 8:59 PM, Adam Spiers wrote: > On Thu, Dec 22, 2011 at 8:47 PM, Adam Spiers wrote: >> On Thu, Dec 22, 2011 at 8:36 PM, Richard Hartmann >> wrote: >>> Did you try --not? >> >> Ahah!  I think this works: >> >>    git annex find --not --in= >> >> Thanks! > > Unfortunately thi