Changeset 828 for trunk/lib/Node.cc


Ignore:
Timestamp:
Sep 26, 2009, 6:01:26 PM (12 years ago)
Author:
Peter Johansson
Message:

fixes #396

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.cc

    r814 r828  
    3131#include "utility.h"
    3232
     33#include <algorithm>
    3334#include <cassert>
    3435#include <ctime>
     
    323324      time_t sec = str2time(i->date());
    324325      tm* timeinfo = gmtime(&sec);
    325       year2rev[timeinfo->tm_year] = i->revision();
     326      // ignore commits in repository not present in wc
     327      year2rev[timeinfo->tm_year] = std::min(i->revision(), last_changed_rev());
    326328    }
    327329    print_copyright(alias, verbose, year2rev);
Note: See TracChangeset for help on using the changeset viewer.