##// END OF EJS Templates
changegroup: deduplicate 'getlocalchangegroup'...
marmoute -
r32164:29e286fa default
parent child Browse files
Show More
@@ -966,7 +966,7 b' def getlocalchangegroupraw(repo, source,'
966 966 bundler = getbundler(version, repo)
967 967 return getsubsetraw(repo, outgoing, bundler, source)
968 968
969 def getlocalchangegroup(repo, source, outgoing, version='01'):
969 def getchangegroup(repo, source, outgoing, version='01'):
970 970 """Like getbundle, but taking a discovery.outgoing as an argument.
971 971
972 972 This is only implemented for local repos and reuses potentially
@@ -976,16 +976,8 b' def getlocalchangegroup(repo, source, ou'
976 976 bundler = getbundler(version, repo)
977 977 return getsubset(repo, outgoing, bundler, source)
978 978
979 def getchangegroup(repo, source, outgoing, version='01'):
980 """Like changegroupsubset, but returns the set difference between the
981 ancestors of heads and the ancestors common.
982
983 If heads is None, use the local heads. If common is None, use [nullid].
984
985 The nodes in common might not all be known locally due to the way the
986 current discovery protocol works.
987 """
988 return getlocalchangegroup(repo, source, outgoing, version=version)
979 # deprecate me once all users are gone
980 getlocalchangegroup = getchangegroup
989 981
990 982 def changegroup(repo, basenodes, source):
991 983 # to avoid a race we use changegroupsubset() (issue1320)
General Comments 0
You need to be logged in to leave comments. Login now