[Bps-public-commit] Prophet branch, master, updated. 4b59cae79062dafa5cc57090d1beaa0ad87b5bec
jesse
jesse at bestpractical.com
Mon Jun 8 11:41:39 EDT 2009
The branch, master has been updated
via 4b59cae79062dafa5cc57090d1beaa0ad87b5bec (commit)
from 5bd5f9283c54c307554fba2f348dde60143c5e37 (commit)
Summary of changes:
lib/Prophet/FilesystemReplica.pm | 5 +++--
lib/Prophet/Replica/prophet.pm | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 4b59cae79062dafa5cc57090d1beaa0ad87b5bec
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Mon Jun 8 11:37:36 2009 -0400
Renaming a _get_changeset_via_index from something somewhat less clear
diff --git a/lib/Prophet/FilesystemReplica.pm b/lib/Prophet/FilesystemReplica.pm
index e33ade3..31db51b 100644
--- a/lib/Prophet/FilesystemReplica.pm
+++ b/lib/Prophet/FilesystemReplica.pm
@@ -179,7 +179,7 @@ sub traverse_changesets {
$self->log_debug("Fetching changeset $rev");
my $data;
if ( $args{load_changesets} ) {
- $data = $self->_get_changeset_index_entry(
+ $data = $self->_get_changeset_via_index(
sequence_no => $rev,
index_file => $chgidx
);
@@ -232,7 +232,8 @@ sub _deserialize_changeset {
$changeset->original_sequence_no( $args{'original_sequence_no'} );
return $changeset;
}
-sub _get_changeset_index_entry {
+
+sub _get_changeset_via_index {
my $self = shift;
my %args = validate( @_, { sequence_no => 1, index_file => 1 } );
# XXX: deserialize the changeset content from the cas with $key
diff --git a/lib/Prophet/Replica/prophet.pm b/lib/Prophet/Replica/prophet.pm
index 95bea13..da22d0f 100644
--- a/lib/Prophet/Replica/prophet.pm
+++ b/lib/Prophet/Replica/prophet.pm
@@ -613,7 +613,7 @@ sub changesets_for_record {
for my $item (@record_index) {
my $sequence = $item->[0];
push @changesets,
- $self->_get_changeset_index_entry(
+ $self->_get_changeset_via_index(
sequence_no => $sequence,
index_file => $changeset_index
);
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list