Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/hg.py @ 516:873228c2f6cf
Change getchangegroup to findincoming
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Change getchangegroup to findincoming
manifest hash: 46dbdc025ead342f7c70a0051d1c596cfcbb6699
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCwuwAywK+sNU5EO8RAoV/AJ9GaoLTKMo2aoycSIZyBt/8r073vQCeK/tO
W1PwSot4HmnmcpR6RVIy9+0=
=PiBt
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Wed, 29 Jun 2005 10:44:16 -0800 |
parents | 03f27b1381f9 |
children | 2f1de824798a |
line wrap: on
line diff
--- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -820,7 +820,7 @@ class localrepository: return nl - def getchangegroup(self, remote): + def findincoming(self, remote): m = self.changelog.nodemap search = [] fetch = [] @@ -830,7 +830,7 @@ class localrepository: # if we have an empty repo, fetch everything if self.changelog.tip() == nullid: self.ui.status("requesting all changes\n") - return remote.changegroup([nullid]) + return [nullid] # otherwise, assume we're closer to the tip than the root self.ui.status("searching for changes\n") @@ -925,8 +925,8 @@ class localrepository: self.ui.debug("%d total queries\n" % reqcnt) - return remote.changegroup(fetch) - + return fetch + def changegroup(self, basenodes): nodes = self.newer(basenodes)