localrepo: use cg?unpacker.apply() instead of changegroup.addchangegroup()
authorAugie Fackler <augie@google.com>
Tue, 13 Oct 2015 17:14:07 -0400
changeset 26702 ec182d109dce
parent 26701 b1a0c534d9b4
child 26703 2b16ffcd3c4e
localrepo: use cg?unpacker.apply() instead of changegroup.addchangegroup() This is in localpeer, so it lives. Had it been in localrepo instead, I would have tried to exterminate it.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Tue Oct 13 17:12:46 2015 -0400
+++ b/mercurial/localrepo.py	Tue Oct 13 17:14:07 2015 -0400
@@ -159,7 +159,7 @@
         return self._repo.lock()
 
     def addchangegroup(self, cg, source, url):
-        return changegroup.addchangegroup(self._repo, 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)