Mercurial > hg
comparison mercurial/changegroup.py @ 29804:7b9157aa752f
outgoing: pass a repo object to the constructor
We are to introduce more code constructing such object in the code base. It will
be more convenient to pass a repository object, all current users already
operate at the repository level anyway. More changes to the contructor argument
are coming in later changeset.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 09 Aug 2016 15:26:53 +0200 |
parents | 976cd337cac9 |
children | 82e8c86cdd6d |
comparison
equal
deleted
inserted
replaced
29803:dab7069fc2bd | 29804:7b9157aa752f |
---|---|
983 common = [n for n in common if hasnode(n)] | 983 common = [n for n in common if hasnode(n)] |
984 else: | 984 else: |
985 common = [nullid] | 985 common = [nullid] |
986 if not heads: | 986 if not heads: |
987 heads = cl.heads() | 987 heads = cl.heads() |
988 return discovery.outgoing(cl, common, heads) | 988 return discovery.outgoing(repo, common, heads) |
989 | 989 |
990 def getchangegroup(repo, source, heads=None, common=None, bundlecaps=None, | 990 def getchangegroup(repo, source, heads=None, common=None, bundlecaps=None, |
991 version='01'): | 991 version='01'): |
992 """Like changegroupsubset, but returns the set difference between the | 992 """Like changegroupsubset, but returns the set difference between the |
993 ancestors of heads and the ancestors common. | 993 ancestors of heads and the ancestors common. |