Changeset 1110 for branches/0.7-stable


Ignore:
Timestamp:
Jul 2, 2010, 3:11:17 PM (11 years ago)
Author:
Peter Johansson
Message:

refs 458. added message to stderr when date is empty, and fixed code in assertion (so it compiles)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.7-stable/lib/SVNlog.cc

    r1109 r1110  
    2828#include <algorithm>
    2929#include <cassert>
     30#include <iostream>
    3031#include <stdexcept>
    3132#include <sstream>
     
    107108      // strange effects such as rev+1 having a earlier date than
    108109      // rev. To ensure that we only allow this workaround when
    109       // calling super-root, let's do the following check:
    110       assert(rev == lb->commits.rbegin()->rev()+1);
     110      // calling super-root, we have the assert below:
     111      std::cerr << "no date defined for revision: " << rev << "\n";
     112      assert(rev == lb->commits.rbegin()->revision()+1);
    111113      d = lb->commits.rbegin()->date();
    112114    }
Note: See TracChangeset for help on using the changeset viewer.