mercurial/hg.py
changeset 516 873228c2f6cf
parent 515 03f27b1381f9
child 522 2f1de824798a
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 = {}