[Bps-public-commit] wifty branch, master, updated. ecac978401766200c9033694bc9e38e9a593a09e

Thomas Sibley trs at bestpractical.com
Sat Aug 14 00:27:10 EDT 2010


The branch, master has been updated
       via  ecac978401766200c9033694bc9e38e9a593a09e (commit)
      from  fcbe984f29797a2388880e963c444798ae657460 (commit)

Summary of changes:
 bin/grep-revisions |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit ecac978401766200c9033694bc9e38e9a593a09e
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Sat Aug 14 00:29:03 2010 -0400

    Indicate if the revision found is the initial create

diff --git a/bin/grep-revisions b/bin/grep-revisions
index 01cff30..3faa5c3 100755
--- a/bin/grep-revisions
+++ b/bin/grep-revisions
@@ -37,7 +37,10 @@ my $match = $revs->first;
 
 print "No matches" unless $match and $match->id;
 
-print "Created: ", $match->created, "\n";
+my $prev = $match->previous;
+my $initial = ($prev and $prev->id) ? '' : ' (initial)';
+
+print "Created: ", $match->created, $initial, "\n";
 print "Author: ", $match->created_by->friendly_name, "\n\n";
 
 my $diff = $match->diff_from( $match->previous, STYLE => 'Text::Diff::Unified' );

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



More information about the Bps-public-commit mailing list