[Bps-public-commit] Prophet branch, master, updated. 4351f80fbbca15a2d46aa0c41808edff9ee53494

jesse jesse at bestpractical.com
Fri Aug 7 08:10:34 EDT 2009


The branch, master has been updated
       via  4351f80fbbca15a2d46aa0c41808edff9ee53494 (commit)
      from  5a824395e638b254eb885407c22d508050c15fc8 (commit)

Summary of changes:
 lib/Prophet/FilesystemReplica.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 4351f80fbbca15a2d46aa0c41808edff9ee53494
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Fri Aug 7 13:10:11 2009 +0100

    Stop prophet from exploding when there is no latest changeset #, say when you've never had a conflict to resolve

diff --git a/lib/Prophet/FilesystemReplica.pm b/lib/Prophet/FilesystemReplica.pm
index 885b4d6..ce2d182 100644
--- a/lib/Prophet/FilesystemReplica.pm
+++ b/lib/Prophet/FilesystemReplica.pm
@@ -165,7 +165,7 @@ sub traverse_changesets {
     );
 
     my $first_rev = ( $args{'after'} + 1 ) || 1;
-    my $latest = $self->latest_sequence_no;
+    my $latest = $self->latest_sequence_no || 0;
 
     if ( defined $args{until} && $args{until} < $latest ) {
         $latest = $args{until};

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list