changegroup: delete now-unused addchangegroup method
authorAugie Fackler <augie@google.com>
Tue, 13 Oct 2015 17:14:37 -0400
changeset 26703 2b16ffcd3c4e
parent 26702 ec182d109dce
child 26704 d7e614513413
changegroup: delete now-unused addchangegroup method
mercurial/changegroup.py
--- a/mercurial/changegroup.py	Tue Oct 13 17:14:07 2015 -0400
+++ b/mercurial/changegroup.py	Tue Oct 13 17:14:37 2015 -0400
@@ -909,12 +909,3 @@
                     (f, hex(n)))
 
     return revisions, files
-
-def addchangegroup(repo, source, srctype, url, emptyok=False,
-                   targetphase=phases.draft, expectedtotal=None):
-    """Legacy forwarding method to cg?unpacker.apply() to be removed soon."""
-    if not source:
-        return 0
-
-    return source.apply(repo, srctype, url, emptyok=emptyok,
-                        targetphase=targetphase, expectedtotal=expectedtotal)