changeset 26703:2b16ffcd3c4e

changegroup: delete now-unused addchangegroup method
author Augie Fackler <augie@google.com>
date Tue, 13 Oct 2015 17:14:37 -0400
parents ec182d109dce
children d7e614513413
files mercurial/changegroup.py
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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)