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) |