##// END OF EJS Templates
share: avoid a now-unnecessary reload of the repo...
Martin von Zweigbergk -
r40610:85bf93de default
parent child Browse files
Show More
@@ -452,15 +452,14 b' def clonewithshare(ui, peeropts, sharepa'
452 defaultpath = source
452 defaultpath = source
453
453
454 sharerepo = repository(ui, path=sharepath)
454 sharerepo = repository(ui, path=sharepath)
455 share(ui, sharerepo, dest=dest, update=False, bookmarks=False,
455 destrepo = share(ui, sharerepo, dest=dest, update=False, bookmarks=False,
456 defaultpath=defaultpath)
456 defaultpath=defaultpath)
457
457
458 # We need to perform a pull against the dest repo to fetch bookmarks
458 # We need to perform a pull against the dest repo to fetch bookmarks
459 # and other non-store data that isn't shared by default. In the case of
459 # and other non-store data that isn't shared by default. In the case of
460 # non-existing shared repo, this means we pull from the remote twice. This
460 # non-existing shared repo, this means we pull from the remote twice. This
461 # is a bit weird. But at the time it was implemented, there wasn't an easy
461 # is a bit weird. But at the time it was implemented, there wasn't an easy
462 # way to pull just non-changegroup data.
462 # way to pull just non-changegroup data.
463 destrepo = repository(ui, path=dest)
464 exchange.pull(destrepo, srcpeer, heads=revs)
463 exchange.pull(destrepo, srcpeer, heads=revs)
465
464
466 _postshareupdate(destrepo, update)
465 _postshareupdate(destrepo, update)
General Comments 0
You need to be logged in to leave comments. Login now