equal
deleted
inserted
replaced
74 commonheads is the list of heads of common. |
74 commonheads is the list of heads of common. |
75 |
75 |
76 The sets are computed on demand from the heads, unless provided upfront |
76 The sets are computed on demand from the heads, unless provided upfront |
77 by discovery.''' |
77 by discovery.''' |
78 |
78 |
79 def __init__(self, repo, commonheads, missingheads): |
79 def __init__(self, repo, commonheads=None, missingheads=None): |
|
80 cl = repo.changelog |
|
81 if not missingheads: |
|
82 missingheads = cl.heads() |
|
83 if not commonheads: |
|
84 commonheads = [nullid] |
80 self.commonheads = commonheads |
85 self.commonheads = commonheads |
81 self.missingheads = missingheads |
86 self.missingheads = missingheads |
82 self._revlog = repo.changelog |
87 self._revlog = cl |
83 self._common = None |
88 self._common = None |
84 self._missing = None |
89 self._missing = None |
85 self.excluded = [] |
90 self.excluded = [] |
86 |
91 |
87 def _computecommonmissing(self): |
92 def _computecommonmissing(self): |