[Bps-public-commit] r11784 - in Prophet/trunk: .

jesse at bestpractical.com jesse at bestpractical.com
Sat Apr 19 15:06:05 EDT 2008


Author: jesse
Date: Sat Apr 19 15:06:04 2008
New Revision: 11784

Modified:
   Prophet/trunk/   (props changed)
   Prophet/trunk/lib/Prophet/App.pm

Log:
 r29866 at 31b:  jesse | 2008-04-19 20:49:35 +0200
 * If our replica has a resolution db, use that. Otherwise, instantiate one.


Modified: Prophet/trunk/lib/Prophet/App.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/App.pm	(original)
+++ Prophet/trunk/lib/Prophet/App.pm	Sat Apr 19 15:06:04 2008
@@ -43,6 +43,8 @@
 
 sub resdb_handle {
     my $self = shift;
+   
+    return ($self->handle->resolution_db_handle) if ($self->handle->resolution_db_handle);
     unless ( $self->_resdb_handle ) {
         my $root = ( $ENV{'PROPHET_REPO'} || dir( $ENV{'HOME'}, '.prophet' ) ) . "_res";
         my $type = $ENV{'PROPHET_REPLICA_TYPE'} || 'svn';
@@ -52,4 +54,5 @@
 }
 
 
+
 1;



More information about the Bps-public-commit mailing list