Changeset 381 for trunk/lib/SVNblame.cc


Ignore:
Timestamp:
Jun 21, 2007, 10:43:17 PM (14 years ago)
Author:
Jari Häkkinen
Message:

SVNblame redesigned.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/SVNblame.cc

    r149 r381  
    22
    33/*
    4   Copyright (C) 2006 Jari Häkkinen
     4  Copyright (C) 2006, 2007 Jari Häkkinen
    55
    66  This file is part of svndigest, http://lev.thep.lu.se/trac/svndigest
     
    5757
    5858
    59   const SVNblame::blame_information* SVNblame::next(void)
     59  std::string SVNblame::author(void)
    6060  {
    61     blame_information *bi=NULL;
    62     if (blame_info_iterator_!=blame_receiver_baton_.blame_info.end()) {
    63       bi=*blame_info_iterator_;
    64       ++blame_info_iterator_;
    65     }
    66     return bi;
     61    return (*blame_info_iterator_)->author;
     62  }
     63
     64
     65  bool SVNblame::binary(void)
     66  {
     67    return binary_;
    6768  }
    6869
     
    8485
    8586
     87  std::string SVNblame::date(void)
     88  {
     89    return (*blame_info_iterator_)->date;
     90  }
     91
     92
     93  std::string SVNblame::line(void)
     94  {
     95    return (*blame_info_iterator_)->line;
     96  }
     97
     98
     99  apr_int64_t SVNblame::line_no(void)
     100  {
     101    return (*blame_info_iterator_)->line_no;
     102  }
     103
     104
     105  bool SVNblame::next_line(void)
     106  {
     107    if (valid())
     108      ++blame_info_iterator_;
     109    return valid();
     110  }
     111
     112
     113  svn_revnum_t SVNblame::revision(void)
     114  {
     115    return (*blame_info_iterator_)->revision;
     116  }
     117
     118
     119  bool SVNblame::valid(void)
     120  {
     121    return (blame_info_iterator_!=blame_receiver_baton_.blame_info.end());
     122  }
     123
    86124}} // end of namespace svndigest and namespace theplu
Note: See TracChangeset for help on using the changeset viewer.