[svk-devel] Can't call method "XXX" on unblessed reference

Chisel Wright chisel at herlpacker.co.uk
Wed Nov 8 06:31:28 EST 2006


I've started seeing strange errors using svk ..

  $ svk add some/file.ext
  Can't call method "get" on unblessed reference at /usr/local/share/perl/5.8.8/SVK/XD.pm line 1414.



  $ svk mi -l
  Path                    Source
  ============================================================
  //mirror/parley //svn+ssh://chiselwright@svn.berlios.de/svnroot/repos/parley
  Can't call method "find" on unblessed reference at /usr/local/share/perl/5.8.8/SVK/XD.pm line 260.

  $ svk --version
  This is svk, version 1.08.

Looking at the file I have:

  260: my @paths = $self->{checkout}->find ('', {lock => $$});
 ...
 1414: my $entry = $self->{checkout}->get($copath);

So it looks like, for some reason, is empty. In new we have:
   97: $self->{checkout} ||= Data::Hierarchy->new( sep => $SEP );


I initially suspected this was linked in with the recent
"Data::Hierarchy 0.40, and backwards compatibility" thread but I don't
appear to have the most recent version of DH installed:

  $ perl -MData::Hierarchy -le 'print Data::Hierarchy->VERSION'
  0.21


I've just mirrored a remote svn-repo as another user that's not
previously used svk on this machine, and I *don't* get the errors.

Does this mean somewhere along the line my upgrades have borked
something in ~/.svk/?
Any idea how I might resolve this - is the only solution to do 'mv
~/.svk/ ~/.svk.borked' and re-mirror and checkout everything again?



---- other information ----
I'm on a freshly installed [this week] machine:
  - installed Ubuntu 6.06
  - installed SVK
  - used SVK (no problems)
  - upgraded to Ubuntu 6.10
  - SVK still seemed ok

This morning I've started installing some perl module dependencies for a
new application I'm supporting - I don't know if one or more of these is
the culprit; it's the only set of changes I recall making since svk last
worked as expected.

I installed (Ubuntu) packages for the following modules:
 
  Apache::Cookie (apreq-1)
  Apache::DBI
  Apache::Reload
  Authen::SMB
  DBD::Pg
  Email::Simple
  Log::Log4perl
  Mail::Sendmail
  Net::IMAP::Simple
  SOAP::Lite
  XML::LibXML
  XML::Simple
  XML::Writer
---- other information ----

Cheers,

Chisel
-- 
Chisel Wright
e: chisel at herlpacker.co.uk
w: http://www.herlpacker.co.uk/

  If you're looking for sympathy you'd have better luck
  looking between R and T in the dictionary.


More information about the svk-devel mailing list