mercurial/discovery.py
changeset 16683 525fdb738975
parent 16657 b6081c2c4647
child 16746 9acb5cd19162
equal deleted inserted replaced
16676:654b9e1966f7 16683:525fdb738975
    84     def missing(self):
    84     def missing(self):
    85         if self._missing is None:
    85         if self._missing is None:
    86             self._computecommonmissing()
    86             self._computecommonmissing()
    87         return self._missing
    87         return self._missing
    88 
    88 
    89 def findcommonoutgoing(repo, other, onlyheads=None, force=False, commoninc=None):
    89 def findcommonoutgoing(repo, other, onlyheads=None, force=False,
       
    90                        commoninc=None):
    90     '''Return an outgoing instance to identify the nodes present in repo but
    91     '''Return an outgoing instance to identify the nodes present in repo but
    91     not in other.
    92     not in other.
    92 
    93 
    93     If onlyheads is given, only nodes ancestral to nodes in onlyheads (inclusive)
    94     If onlyheads is given, only nodes ancestral to nodes in onlyheads
    94     are included. If you already know the local repo's heads, passing them in
    95     (inclusive) are included. If you already know the local repo's heads,
    95     onlyheads is faster than letting them be recomputed here.
    96     passing them in onlyheads is faster than letting them be recomputed here.
    96 
    97 
    97     If commoninc is given, it must the the result of a prior call to
    98     If commoninc is given, it must the the result of a prior call to
    98     findcommonincoming(repo, other, force) to avoid recomputing it here.'''
    99     findcommonincoming(repo, other, force) to avoid recomputing it here.'''
    99     # declare an empty outgoing object to be filled later
   100     # declare an empty outgoing object to be filled later
   100     og = outgoing(repo.changelog, None, None)
   101     og = outgoing(repo.changelog, None, None)