~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/missing.py

remove all trailing whitespace from bzr source

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    :param include_merges: Show mainline revisions only if False,
67
67
        all revisions otherwise.
68
68
    :param backward: Show oldest versions first when True, newest versions
69
 
        first when False. 
 
69
        first when False.
70
70
 
71
71
    :return: A list of [(revno, revision_id)] for the mainline revisions on
72
72
        each side.
92
92
    :param tip_revno: The revision number for the tip revision
93
93
    :param tip: The tip of mainline
94
94
    :param backward: Show oldest versions first when True, newest versions
95
 
        first when False. 
 
95
        first when False.
96
96
    :return: [(revno, revision_id)] for all revisions in ancestry that
97
97
        are left-hand parents from tip, or None if ancestry is None.
98
98
    """
131
131
    :param tip_revno: The revision number for the tip revision
132
132
    :param tip: The tip of the ancsetry
133
133
    :param backward: Show oldest versions first when True, newest versions
134
 
        first when False. 
 
134
        first when False.
135
135
    :return: [(revno, revision_id)] for all revisions in ancestry that
136
136
        are parents from tip, or None if ancestry is None.
137
137
    """
154
154
    parent_map = dict(((key, value) for key, value
155
155
                       in graph.iter_ancestry(mainline_revs[1:])
156
156
                       if value is not None))
157
 
    # filter out ghosts; merge_sort errors on ghosts. 
 
157
    # filter out ghosts; merge_sort errors on ghosts.
158
158
    # XXX: is this needed here ? -- vila080910
159
159
    rev_graph = _mod_repository._strip_NULL_ghosts(parent_map)
160
160
    # XXX: what if rev_graph is empty now ? -- vila080910