[Bps-public-commit] SD branch, config-gitlike, updated. 355ed5828b3b5da51dd3cf9ee09434f18729a407

spang at bestpractical.com spang at bestpractical.com
Tue Jun 23 09:44:47 EDT 2009


The branch, config-gitlike has been updated
       via  355ed5828b3b5da51dd3cf9ee09434f18729a407 (commit)
      from  f55c04f93606dab43fd9dc9b99c695c2abbf651e (commit)

Summary of changes:
 lib/App/SD/CLI/Command/Help/Config.pm   |   12 ++++++------
 lib/App/SD/CLI/Command/Ticket/Search.pm |    8 ++++----
 2 files changed, 10 insertions(+), 10 deletions(-)

- Log -----------------------------------------------------------------
commit 355ed5828b3b5da51dd3cf9ee09434f18729a407
Author: Christine Spang <spang at bestpractical.com>
Date:   Tue Jun 23 16:15:52 2009 +0300

    I've been persuaded that ticket.list > ticket.search

diff --git a/lib/App/SD/CLI/Command/Help/Config.pm b/lib/App/SD/CLI/Command/Help/Config.pm
index dd71cdd..3222b23 100644
--- a/lib/App/SD/CLI/Command/Help/Config.pm
+++ b/lib/App/SD/CLI/Command/Help/Config.pm
@@ -26,7 +26,7 @@ documents, we'll refer to variables in the manner:
 "section.subsection.variable-name". In a configuration file, this
 would look like:
 
-    [section "subsection]
+    [section "subsection"]
         variable-name = value
 
 Currently, the following configuration variables are available (sorted
@@ -43,13 +43,13 @@ by configuration file section):
       creating or updating tickets. (Overrides the database-wide
       setting of the same name.)
 
-    ticket.search.default-sort = status
-      Bug property to determine order of display when searching/listing
+    ticket.list.default-sort = status
+      Bug property to determine order of display when displaying lists of
       tickets. (Can be any property; will be compared lexically.)
 
-    ticket.search.default-group = milestone
-      Bug property to group tickets by when displaying searches/lists. (Can be
-      any property.)
+    ticket.list.default-group = milestone
+      Bug property to group tickets by when displaying lists of tickets. (Can
+      be any property.)
 
     ticket.show.disable-history = 1
       Don't display ticket history when running '${cmd}ticket show'. Can
diff --git a/lib/App/SD/CLI/Command/Ticket/Search.pm b/lib/App/SD/CLI/Command/Ticket/Search.pm
index bd56fe2..4444f00 100644
--- a/lib/App/SD/CLI/Command/Ticket/Search.pm
+++ b/lib/App/SD/CLI/Command/Ticket/Search.pm
@@ -10,20 +10,20 @@ sub run {
     my $self = shift;
 
     if (  (!$self->has_arg('sort') || !$self->arg('sort'))
-        && $self->app_handle->config->get( key => 'ticket.search.default-sort') )
+        && $self->app_handle->config->get( key => 'ticket.list.default-sort') )
     {
         $self->set_arg(
             'sort' => $self->app_handle->config->get(
-                key => 'ticket.search.default-sort'
+                key => 'ticket.list.default-sort'
             )
         );
     }
 
     if (  (!$self->has_arg('group') || !$self->arg('group'))
-        && $self->app_handle->config->get( key => 'ticket.search.default-group') )
+        && $self->app_handle->config->get( key => 'ticket.list.default-group') )
     {
         $self->set_arg( 'group' =>
-              $self->app_handle->config->get( key => 'ticket.search.default-group') );
+              $self->app_handle->config->get( key => 'ticket.list.default-group') );
     }
 
     # sort output by given prop if user specifies --sort

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



More information about the Bps-public-commit mailing list