[Bps-public-commit] Prophet branch, master, updated. a9e6a8aa5da6562d0eb6b71ccb0b3c38325f5b7b
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Wed Aug 19 01:10:19 EDT 2009
The branch, master has been updated
via a9e6a8aa5da6562d0eb6b71ccb0b3c38325f5b7b (commit)
from 91e8cfb0b318a3a55ef768edcbfc46fee7474647 (commit)
Summary of changes:
lib/Prophet/App.pm | 1 -
lib/Prophet/CLI/Command.pm | 2 --
lib/Prophet/CLI/Command/Clone.pm | 1 -
lib/Prophet/CLI/Command/Init.pm | 1 -
4 files changed, 0 insertions(+), 5 deletions(-)
- Log -----------------------------------------------------------------
commit a9e6a8aa5da6562d0eb6b71ccb0b3c38325f5b7b
Author: sunnavy <sunnavy at bestpractical.com>
Date: Wed Aug 19 13:09:32 2009 +0800
no need to s!\\!\\\\!g, config-gitlike should do this job
diff --git a/lib/Prophet/App.pm b/lib/Prophet/App.pm
index 3052f05..18c254a 100644
--- a/lib/Prophet/App.pm
+++ b/lib/Prophet/App.pm
@@ -265,7 +265,6 @@ sub display_name_for_replica {
my $uuid = $possibilities{$_};
$_ =~ /^replica\.(.*)\.uuid$/;
my $name = $1;
- $name =~ s!\\\\!\\!g; # revert back since we escape \ before
( $uuid => $name );
} keys %possibilities;
return exists $sources_by_uuid{$uuid} ? $sources_by_uuid{$uuid} : $uuid;
diff --git a/lib/Prophet/CLI/Command.pm b/lib/Prophet/CLI/Command.pm
index f7cc629..9de22d6 100644
--- a/lib/Prophet/CLI/Command.pm
+++ b/lib/Prophet/CLI/Command.pm
@@ -259,7 +259,6 @@ sub record_replica_in_config {
if ( !$found_prev_replica ) {
# replica section doesn't exist at all; create a new one
my $url = $replica_url;
- $url =~ s!\\!\\\\!g; # subsection can't contain unescaped \
$self->app_handle->config->group_set(
$self->app_handle->config->replica_config_file,
[
@@ -279,7 +278,6 @@ sub record_replica_in_config {
# to previously--we don't want to end up with a multivalue in the
# config file, so just replace the old value.
my $name = $self->app_handle->display_name_for_replica($replica_uuid);
- $name =~ s!\\!\\\\!g;
$self->app_handle->config->set(
filename => $self->app_handle->config->replica_config_file,
key => "replica.$name.$url_variable",
diff --git a/lib/Prophet/CLI/Command/Clone.pm b/lib/Prophet/CLI/Command/Clone.pm
index 0b5be3a..9473528 100644
--- a/lib/Prophet/CLI/Command/Clone.pm
+++ b/lib/Prophet/CLI/Command/Clone.pm
@@ -55,7 +55,6 @@ sub run {
# create new config section for this replica
my $from = $self->arg('from');
- $from =~ s!\\!\\\\!g; # subsection can't contain unescaped \
$self->app_handle->config->group_set(
$self->app_handle->config->replica_config_file,
[ {
diff --git a/lib/Prophet/CLI/Command/Init.pm b/lib/Prophet/CLI/Command/Init.pm
index 30c3170..ff09891 100644
--- a/lib/Prophet/CLI/Command/Init.pm
+++ b/lib/Prophet/CLI/Command/Init.pm
@@ -29,7 +29,6 @@ sub run {
# create new config section for this replica
my $url = $self->app_handle->handle->url;
- $url =~ s!\\!\\\\!g; # subsection can't contain unescaped \
$self->app_handle->config->set(
key => 'replica.'.$url.'.uuid',
value => $self->app_handle->handle->uuid,
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list