Re: [RFC/PATCH] git-svn: use YAML format for mergeinfo cache when possible
- From
- Eric Wong <normalperson@yhbt.net>
- Date
- May 27, 2012, 20:14 UTC
- Message-ID
- <20120527201450.GA3630@dcvr.yhbt.net>
- In-Reply-To
- <20120527192541.GA29490@burratino>
Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 11 quoted lines
> My personal motivation is the ability to upgrade or downgrade perl or > change perl's use64bitint compile-time parameter without having to > invalidate caches or (worse, what users unaware of .git/svn/.caches > would probably do) reclone repositories. The Storable format is not > stable enough for forward-compatibility. > > Seems to work. I haven't run any benchmarks. > > Thoughts? Improvements? > > Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Seems reasonable, a few comments below.
> git-svn.perl | 126 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---
> +package Git::SVN::Memoize::YAML;
Can we use this as an opportunity to start splitting git-svn.perl into multiple .pm files? Thanks.
> + my $truehash = (-e $filename) ? YAML::Any::LoadFile($filename) : {};> + YAML::Any::DumpFile($self->{FILENAME}, $self->{H});These should die on errors, right?
> +=head1 BUGS
> +Error handling is awkward.
How so?