Changeset 452 for trunk/lib/Node.cc


Ignore:
Timestamp:
Aug 17, 2007, 9:03:32 PM (14 years ago)
Author:
Peter Johansson
Message:

fixes #248 and refs #185

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.cc

    r439 r452  
    2323
    2424#include "Node.h"
     25
     26#include "Date.h"
    2527#include "html_utility.h"
    2628#include "SVNlog.h"
     
    6062    lstat(path.c_str(),&nodestat);   // C api from sys/stat.h
    6163    link_ = S_ISLNK(nodestat.st_mode);
     64  }
     65
     66
     67  std::string Node::author(void) const
     68  {
     69    if (ignore())
     70      return svninfo_.last_changed_author();
     71    assert(log().author().size());
     72    return log().author().back();
    6273  }
    6374
     
    112123
    113124    }
    114     os << "<td>" << trac_revision(stats_.last_changed_rev()) << "</td>\n"
     125
     126    os << "<td>" << trac_revision(last_changed_rev()) << "</td>\n"
    115127       << "<td>" << author() << "</td>\n"
    116128       << "</tr>\n";
     129  }
     130
     131
     132  svn_revnum_t Node::last_changed_rev(void) const
     133  {
     134    if (ignore())
     135      return svninfo_.last_changed_rev();
     136    assert(log().revision().size());
     137    return log().revision().back();
     138  }
     139
     140
     141  SVNlog Node::log(void) const
     142  {
     143    if (ignore())
     144      return SVNlog();
     145    return log_core();
    117146  }
    118147
     
    216245        Commitment lc(log.latest_commit(*i));
    217246        os << "</td>" << "<td>" << trac_revision(lc.revision())
    218            << "</td>" << "<td>" << lc.date()(timefmt);
     247           << "</td>" << "<td>" << Date(lc.date())(timefmt);
    219248      }
    220249      else {
     
    244273    Commitment lc(log.latest_commit());
    245274    os << "<td>" << trac_revision(lc.revision()) << "</td>\n";
    246     os << "<td>" << lc.date()(timefmt)<< "</td>\n";
     275    os << "<td>" << Date(lc.date())(timefmt)<< "</td>\n";
    247276    os << "</tr>\n";
    248277    os << "</tbody>\n";
Note: See TracChangeset for help on using the changeset viewer.