[Bps-public-commit] App-Changeloggr branch, master, updated. dfa523a5e4b7c2eeb4b7803c2c6a3014f9632f07

sartak at bestpractical.com sartak at bestpractical.com
Thu Jul 30 13:54:11 EDT 2009


The branch, master has been updated
       via  dfa523a5e4b7c2eeb4b7803c2c6a3014f9632f07 (commit)
       via  940ae8396a1362ab7f74587d31337adaa61f076b (commit)
      from  98e0570577720c37439c2fdbf953436d2b4aa81b (commit)

Summary of changes:
 etc/config.yml                         |    2 +-
 lib/App/Changeloggr/InputFormat/Git.pm |    6 +++---
 lib/App/Changeloggr/Model/Change.pm    |    6 ++++++
 3 files changed, 10 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit 940ae8396a1362ab7f74587d31337adaa61f076b
Author: Shawn M Moore <sartak at gmail.com>
Date:   Thu Jul 30 13:53:44 2009 -0400

    Add commit_date column to changes

diff --git a/etc/config.yml b/etc/config.yml
index b5005b2..d46ce48 100644
--- a/etc/config.yml
+++ b/etc/config.yml
@@ -14,7 +14,7 @@ framework:
     Password: ''
     RecordBaseClass: Jifty::DBI::Record::Cachable
     User: ''
-    Version: 0.0.15
+    Version: 0.0.16
   DevelMode: 1
   L10N: 
     PoDir: share/po
diff --git a/lib/App/Changeloggr/Model/Change.pm b/lib/App/Changeloggr/Model/Change.pm
index afa52db..d47b262 100644
--- a/lib/App/Changeloggr/Model/Change.pm
+++ b/lib/App/Changeloggr/Model/Change.pm
@@ -31,6 +31,12 @@ use App::Changeloggr::Record schema {
         filters are qw( Jifty::Filter::DateTime Jifty::DBI::Filter::DateTime),
         label is 'Date';
 
+    column commit_date =>
+        type is 'timestamp',
+        filters are qw( Jifty::Filter::DateTime Jifty::DBI::Filter::DateTime),
+        label is 'Commit Date',
+        since is '0.0.16';
+
     column message =>
         type is 'text',
         label is 'Body',

commit dfa523a5e4b7c2eeb4b7803c2c6a3014f9632f07
Author: Shawn M Moore <sartak at gmail.com>
Date:   Thu Jul 30 13:53:50 2009 -0400

    Keep track of commit dates

diff --git a/lib/App/Changeloggr/InputFormat/Git.pm b/lib/App/Changeloggr/InputFormat/Git.pm
index ae1f3a6..927331b 100644
--- a/lib/App/Changeloggr/InputFormat/Git.pm
+++ b/lib/App/Changeloggr/InputFormat/Git.pm
@@ -51,9 +51,9 @@ sub next_match {
 #    if ($entry =~ /^Commit:\s*(.*)$/im) {
 #        $fields{commit} = $1;
 #    }
-#    if ($entry =~ /^CommitDate:\s*(.*)$/im) {
-#        $fields{commit_date} = $1;
-#    }
+    if ($entry =~ /^CommitDate:\s*(.*)$/im) {
+        $fields{commit_date} = $1;
+    }
 
     if ($entry =~ /.*?^\n(\s{4}.*?)(^\s{1,2}\S+\s+\|\s+\d+|\z)/ims) {
         $fields{message} = $1;

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



More information about the Bps-public-commit mailing list