##// END OF EJS Templates
pull: move `fetch` subset into the object...
Pierre-Yves David -
r20488:76e66654 default
parent child Browse files
Show More
@@ -399,6 +399,8 b' class pulloperation(object):'
399 399 self.common = None
400 400 # set of pulled head
401 401 self.rheads = None
402 # list of missing changeset to fetch remotly
403 self.fetch = None
402 404
403 405 @util.propertycache
404 406 def pulledsubset(self):
@@ -445,8 +447,8 b' def pull(repo, remote, heads=None, force'
445 447 pullop.remote,
446 448 heads=pullop.heads,
447 449 force=force)
448 pullop.common, fetch, pullop.rheads = tmp
449 if not fetch:
450 pullop.common, pullop.fetch, pullop.rheads = tmp
451 if not pullop.fetch:
450 452 pullop.repo.ui.status(_("no changes found\n"))
451 453 result = 0
452 454 else:
@@ -468,13 +470,14 b' def pull(repo, remote, heads=None, force'
468 470 heads=(pullop.heads
469 471 or pullop.rheads))
470 472 elif pullop.heads is None:
471 cg = pullop.remote.changegroup(fetch, 'pull')
473 cg = pullop.remote.changegroup(pullop.fetch, 'pull')
472 474 elif not pullop.remote.capable('changegroupsubset'):
473 475 raise util.Abort(_("partial pull cannot be done because "
474 476 "other repository doesn't support "
475 477 "changegroupsubset."))
476 478 else:
477 cg = pullop.remote.changegroupsubset(fetch, pullop.heads,
479 cg = pullop.remote.changegroupsubset(pullop.fetch,
480 pullop.heads,
478 481 'pull')
479 482 result = pullop.repo.addchangegroup(cg, 'pull',
480 483 pullop.remote.url())
General Comments 0
You need to be logged in to leave comments. Login now