Before uploading (Pushing) changes from your local Mercurial repository to a remote repository make sure that:

  • You have a Mercurial hosting account.
  • The target remote Mercurial repository is accessible for your account.
  • You have a pair of ssh keys to access the remote repository.

Do the following:

  1. From the main menu, choose VCS | Mercurial | Push. The Push Commits dialog opens listing all commits made in the current branch since the last push.
  2. Select the commits you want to push. The right-hand pane shows the changes included in the selected commit. You can use the toolbar buttons to examine the commit details.
  3. If you want to modify the target branch where you want to push, click the branch name (it is highlighted in blue). The label turns into a text field where you can specify the target branch (note that completion is available for branch names).
  4. If you want to push active bookmarks with your commits (they are not sent to the remote repositories by default), select the Export Active Bookmarks option.
  5. Click the Push button when ready. IntelliJ IDEA starts the upload.