mercurial/bundlerepo.py
changeset 16683 525fdb738975
parent 16435 df347129305d
child 16686 67964cda8701
equal deleted inserted replaced
16676:654b9e1966f7 16683:525fdb738975
   321       the returned "cleanupfn".
   321       the returned "cleanupfn".
   322     "force" indicates whether to proceed on unrelated repos.
   322     "force" indicates whether to proceed on unrelated repos.
   323 
   323 
   324     Returns a tuple (local, csets, cleanupfn):
   324     Returns a tuple (local, csets, cleanupfn):
   325 
   325 
   326     "local" is a local repo from which to obtain the actual incoming changesets; it
   326     "local" is a local repo from which to obtain the actual incoming
   327       is a bundlerepo for the obtained bundle when the original "other" is remote.
   327       changesets; it is a bundlerepo for the obtained bundle when the
       
   328       original "other" is remote.
   328     "csets" lists the incoming changeset node ids.
   329     "csets" lists the incoming changeset node ids.
   329     "cleanupfn" must be called without arguments when you're done processing the
   330     "cleanupfn" must be called without arguments when you're done processing
   330       changes; it closes both the original "other" and the one returned here.
   331       the changes; it closes both the original "other" and the one returned
       
   332       here.
   331     '''
   333     '''
   332     tmp = discovery.findcommonincoming(repo, other, heads=onlyheads, force=force)
   334     tmp = discovery.findcommonincoming(repo, other, heads=onlyheads,
       
   335                                        force=force)
   333     common, incoming, rheads = tmp
   336     common, incoming, rheads = tmp
   334     if not incoming:
   337     if not incoming:
   335         try:
   338         try:
   336             if bundlename:
   339             if bundlename:
   337                 os.unlink(bundlename)
   340                 os.unlink(bundlename)