##// END OF EJS Templates
outgoing: adds some default value for argument...
Pierre-Yves David -
r29805:f09d0004 default
parent child Browse files
Show More
@@ -76,10 +76,15 b' class outgoing(object):'
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 = []
General Comments 0
You need to be logged in to leave comments. Login now