mercurial/hg.py
changeset 22647 5b6cd8526d56
parent 22646 d6ecdb8bfa16
child 22648 ef62c66bee1b
equal deleted inserted replaced
22646:d6ecdb8bfa16 22647:5b6cd8526d56
   411                 revs = [srcpeer.lookup(r) for r in rev]
   411                 revs = [srcpeer.lookup(r) for r in rev]
   412                 checkout = revs[0]
   412                 checkout = revs[0]
   413             if destpeer.local():
   413             if destpeer.local():
   414                 destpeer.local().clone(srcpeer, heads=revs, stream=stream)
   414                 destpeer.local().clone(srcpeer, heads=revs, stream=stream)
   415             elif srcrepo:
   415             elif srcrepo:
   416                 exchange.push(srcrepo, destpeer, revs=revs)
   416                 exchange.push(srcrepo, destpeer, revs=revs,
       
   417                               bookmarks=srcrepo._bookmarks.keys())
   417             else:
   418             else:
   418                 raise util.Abort(_("clone from remote to remote not supported"))
   419                 raise util.Abort(_("clone from remote to remote not supported"))
   419 
   420 
   420         cleandir = None
   421         cleandir = None
   421 
   422