Patchwork [6,of,6] localrepo: remove unused addchangegroup() (API)

login
register
mail settings
Submitter via Mercurial-devel
Date June 15, 2017, 10:25 p.m.
Message ID <527308770ccd983cbe93.1497565533@martinvonz.svl.corp.google.com>
Download mbox | patch
Permalink /patch/21418/
State Accepted
Headers show

Comments

via Mercurial-devel - June 15, 2017, 10:25 p.m.
# HG changeset patch
# User Martin von Zweigbergk <martinvonz@google.com>
# Date 1497564798 25200
#      Thu Jun 15 15:13:18 2017 -0700
# Node ID 527308770ccd983cbe9323ae63c0099808af97f8
# Parent  7aeaaaf76de7dc3eb8d24757ed7fbc1d32671d25
localrepo: remove unused addchangegroup() (API)

This completes the cleanup started in d3775db748a0 (localrepo: move
the addchangegroup method in changegroup module, 2014-04-01).
Yuya Nishihara - June 16, 2017, 2:43 p.m.
On Thu, 15 Jun 2017 15:25:33 -0700, Martin von Zweigbergk via Mercurial-devel wrote:
> # HG changeset patch
> # User Martin von Zweigbergk <martinvonz@google.com>
> # Date 1497564798 25200
> #      Thu Jun 15 15:13:18 2017 -0700
> # Node ID 527308770ccd983cbe9323ae63c0099808af97f8
> # Parent  7aeaaaf76de7dc3eb8d24757ed7fbc1d32671d25
> localrepo: remove unused addchangegroup() (API)

Queued these, thanks.

wirepeer.unbundle() says "see localrepository.addchangegroup()", maybe this
has to be updated.

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -212,9 +212,6 @@ 
     def lock(self):
         return self._repo.lock()
 
-    def addchangegroup(self, cg, source, url):
-        return cg.apply(self._repo, source, url)
-
     def pushkey(self, namespace, key, old, new):
         return self._repo.pushkey(namespace, key, old, new)