Do the following:
-
From the main menu, choose
VCS | Mercurial | Push
. The Push Commits dialog opens
showing all Mercurial repositories (for multi-rooted projects) and listing all
commits made in the current branch in each repository since the last push.
If you have a multi-rooted project where repositories are not controlled synchronously, only the current repository is selected by default. For details on how to enable synchronous repositories control refer to Version Control Settings: Mercurial .
-
If necessary, you can modify the path to the remote repository by clicking it. The label turns into a text field where you can type the new path or invoke completion by
pressing ⌃Space or ⌃Space⌃Space or ⌃Space⌃Space or ⌃Space^ Space, ⌃Space or ⌃Space⌥ Slash, ⌥/ or ⌥/.
If there are no remotes in the repository, the Define remote link appears. Click this link and specify the remote name and URL in the dialog that opens.
-
If you want to preview changes before pushing them, select the required commit. The right-hand pane shows the changes included in the selected commit. You can use the toolbar buttons to
examine the commit details.
If the author of a commit is different from the current user, this commit is marked with an asterisk.
- 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.
-
Click the Push button when ready and select which operation you want to perform from the drop-down menu:
pushorpush --force.Select Force push if:
- You have created a local branch and want to upload it to the remote repository
- You do not want to update the local repository before push
If you select an entire repository, all files from all commits will be listed in the right pane.
If the same file was modified within several commits, it will only be listed once if you select these commits or the entire repository, and if you invoke the Differences viewer for files for this file, all changes will be zipped together.
