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

sartak at bestpractical.com sartak at bestpractical.com
Wed Jul 16 17:01:40 EDT 2008


Author: sartak
Date: Wed Jul 16 17:01:38 2008
New Revision: 14175

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

Log:
 r64447 at onn:  sartak | 2008-07-16 17:01:31 -0400
 Register http: and file: as aliases of prophet:


Modified: Prophet/trunk/lib/Prophet/Replica.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/Replica.pm	(original)
+++ Prophet/trunk/lib/Prophet/Replica.pm	Wed Jul 16 17:01:38 2008
@@ -41,11 +41,17 @@
 our $REPLICA_TYPE_MAP = {};
 our $MERGETICKET_METATYPE = '_merge_tickets';
 
- for ( __PACKAGE__->core_replica_types) {
-    $_->require; # Require here, rather than with the autorequire from Module::Pluggable as that goes too far
-    # and tries to load Prophet::Replica::SVN::ReplayEditor;
-    __PACKAGE__->register_replica_scheme(scheme => $_->scheme, class => $_) 
- }
+for ( __PACKAGE__->core_replica_types) {
+   $_->require; # Require here, rather than with the autorequire from Module::Pluggable as that goes too far
+   # and tries to load Prophet::Replica::SVN::ReplayEditor;
+   __PACKAGE__->register_replica_scheme(scheme => $_->scheme, class => $_) 
+}
+
+ # register some aliases
+for my $scheme (qw/http file/) {
+   __PACKAGE__->register_replica_scheme(scheme => $scheme, class => $REPLICA_TYPE_MAP->{prophet});
+}
+
 =head1 NAME
 
 Prophet::Replica



More information about the Bps-public-commit mailing list