Mercurial > hg > mercurial-crew-with-dirclash
comparison 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 |
comparison
equal
deleted
inserted
replaced
515:03f27b1381f9 | 516:873228c2f6cf |
---|---|
818 nl.append(n) | 818 nl.append(n) |
819 break | 819 break |
820 | 820 |
821 return nl | 821 return nl |
822 | 822 |
823 def getchangegroup(self, remote): | 823 def findincoming(self, remote): |
824 m = self.changelog.nodemap | 824 m = self.changelog.nodemap |
825 search = [] | 825 search = [] |
826 fetch = [] | 826 fetch = [] |
827 seen = {} | 827 seen = {} |
828 seenbranch = {} | 828 seenbranch = {} |
829 | 829 |
830 # if we have an empty repo, fetch everything | 830 # if we have an empty repo, fetch everything |
831 if self.changelog.tip() == nullid: | 831 if self.changelog.tip() == nullid: |
832 self.ui.status("requesting all changes\n") | 832 self.ui.status("requesting all changes\n") |
833 return remote.changegroup([nullid]) | 833 return [nullid] |
834 | 834 |
835 # otherwise, assume we're closer to the tip than the root | 835 # otherwise, assume we're closer to the tip than the root |
836 self.ui.status("searching for changes\n") | 836 self.ui.status("searching for changes\n") |
837 heads = remote.heads() | 837 heads = remote.heads() |
838 unknown = [] | 838 unknown = [] |
923 self.ui.note("adding new changesets starting at " + | 923 self.ui.note("adding new changesets starting at " + |
924 " ".join([short(f) for f in fetch]) + "\n") | 924 " ".join([short(f) for f in fetch]) + "\n") |
925 | 925 |
926 self.ui.debug("%d total queries\n" % reqcnt) | 926 self.ui.debug("%d total queries\n" % reqcnt) |
927 | 927 |
928 return remote.changegroup(fetch) | 928 return fetch |
929 | 929 |
930 def changegroup(self, basenodes): | 930 def changegroup(self, basenodes): |
931 nodes = self.newer(basenodes) | 931 nodes = self.newer(basenodes) |
932 | 932 |
933 # construct the link map | 933 # construct the link map |
934 linkmap = {} | 934 linkmap = {} |