[PATCH 10 of 10] changegroup: delete now-unused addchangegroup method
Augie Fackler
raf at durin42.com
Wed Oct 14 12:34:35 CDT 2015
# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1444770877 14400
# Tue Oct 13 17:14:37 2015 -0400
# Node ID 3f238fd1bf851ab14c5b6a4ae8a88e55d6dd8b15
# Parent 166d8cee14236633f130cb2ef91d91251243f665
changegroup: delete now-unused addchangegroup method
diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -909,12 +909,3 @@ def addchangegroupfiles(repo, source, re
(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)
More information about the Mercurial-devel
mailing list