mercurial/changegroup.py
changeset 26703 2b16ffcd3c4e
parent 26695 1121fced5b20
child 26704 d7e614513413
--- 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)