hgext/infinitepush/__init__.py
changeset 43598 a936a3455bb1
parent 43554 9f70512ae2cf
child 45144 c93dd9d9f1e6
equal deleted inserted replaced
43597:4cb3f5bb29ec 43598:a936a3455bb1
   546     scratchheads = []
   546     scratchheads = []
   547     nodestobundle = {}
   547     nodestobundle = {}
   548     allbundlestocleanup = []
   548     allbundlestocleanup = []
   549     try:
   549     try:
   550         for head in heads:
   550         for head in heads:
   551             if head not in repo.changelog.nodemap:
   551             if not repo.changelog.index.has_node(head):
   552                 if head not in nodestobundle:
   552                 if head not in nodestobundle:
   553                     newbundlefile = common.downloadbundle(repo, head)
   553                     newbundlefile = common.downloadbundle(repo, head)
   554                     bundlepath = b"bundle:%s+%s" % (repo.root, newbundlefile)
   554                     bundlepath = b"bundle:%s+%s" % (repo.root, newbundlefile)
   555                     bundlerepo = hg.repository(repo.ui, bundlepath)
   555                     bundlerepo = hg.repository(repo.ui, bundlepath)
   556 
   556