mercurial/commands.py
changeset 9645 02f40b2ece3f
parent 9644 c6b721da201b
child 9646 5b001f534452
equal deleted inserted replaced
9644:c6b721da201b 9645:02f40b2ece3f
  2306             err = _("Other repository doesn't support revision lookup, "
  2306             err = _("Other repository doesn't support revision lookup, "
  2307                     "so a rev cannot be specified.")
  2307                     "so a rev cannot be specified.")
  2308             raise util.Abort(err)
  2308             raise util.Abort(err)
  2309 
  2309 
  2310     modheads = repo.pull(other, heads=revs, force=opts.get('force'))
  2310     modheads = repo.pull(other, heads=revs, force=opts.get('force'))
       
  2311     if checkout:
       
  2312         checkout = str(repo.changelog.rev(other.lookup(checkout)))
  2311     return postincoming(ui, repo, modheads, opts.get('update'), checkout)
  2313     return postincoming(ui, repo, modheads, opts.get('update'), checkout)
  2312 
  2314 
  2313 def push(ui, repo, dest=None, **opts):
  2315 def push(ui, repo, dest=None, **opts):
  2314     """push changes to the specified destination
  2316     """push changes to the specified destination
  2315 
  2317