22
22
__docformat__ = "restructuredtext"
23
23
__doc__ = "Utility functions to be used by commands"
26
26
"""Get a list of direct merges, from a list of direct and indirect
28
28
:param merges: Iterator of merge patchlogs
29
29
:type merges: iter of `pybaz.Patchlog`
30
30
:return: The direct merges
31
31
:rtype: list of `pybaz.Patchlog`
42
41
except pybaz.errors.NamespaceError:
44
43
print "log ", log, " unusable, attempting to use archive copy."
45
44
log = pybaz.Revision(str(log.revision)).patchlog
50
47
if log.continuation_of is not None:
51
48
# continuations list everything in new_patches