~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/wholehistory.py

[rs=igc] update to lp:loggerhead trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
    last_revid = branch.last_revision()
49
49
 
50
50
    log = logging.getLogger('loggerhead.%s' %
51
 
                            branch.get_config().get_nickname())
 
51
                            (branch.get_config().get_nickname(),))
52
52
 
53
53
    graph = branch.repository.get_graph()
54
 
    parent_map = dict(((key, value) for key, value in
55
 
         graph.iter_ancestry([last_revid]) if value is not None))
 
54
    parent_map = dict((key, value) for key, value in
 
55
        graph.iter_ancestry([last_revid]) if value is not None)
56
56
 
57
57
    _revision_graph = _strip_NULL_ghosts(parent_map)
58
58
 
80
80
            if revid not in c[1]:
81
81
                c[1] = c[1] + (revid,)
82
82
 
83
 
    log.info('built revision graph cache: %r secs' % (time.time() - z))
 
83
    log.info('built revision graph cache: %r secs' % (time.time() - z,))
84
84
 
85
85
    return (_rev_info, _rev_indices)