Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 26702:ec182d109dce
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.
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 13 Oct 2015 17:14:07 -0400 |
parents | 09bb1ee7e73e |
children | e1568d5eb052 |
line wrap: on
line diff
--- 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)