Mercurial: Committing Changes to the Repository
See Also
Once your working copies of version-controlled files have been edited,
you can then place changes into the repository using the Mercurial
Commit action.
- Mercurial versioned files and folders must be recognized by the IDE
as such in order to call Mercurial actions on them. To do so, you
must first clone sources from an
external repository or place the project under Mercurial control.
To commit changes in local files to the repository:
- Select a version-controlled file or folder (e.g. from the Projects,
Files, or Favorites window) and choose Mercurial > Commit from
the right-click menu. The Commit Dialog opens, listing all files that
contain local changes. If the files you want to commit do not already
exist in the repository, the commit action will add them.
- Enter a commit message in the Commit Message text area, indicating the
purpose of the commit.
- Click the Recent Messages icon (
) in the upper right corner of the
dialog to view recent commit messages.
- Click Commit. The IDE executes the commit and sends your local changes to
the repository. You can also view files being commited to the
repository from the Output window (Ctrl-4).
- When working in the Commit dialog, you can exclude individual files from a
commit. To do so, click on the Commit Action column for the specific file
and choose Exclude from Commit. The file name responds by displaying in
strike-through text.
Ignoring Files
If your local working directory includes files or directories that you do not
want to place under version control, you can set the IDE to ignore them
permanantly using the Ignore command.
- You cannot employ the Ignore command on files that already exist in the
repository.
To ignore local files in your working directory:
- Select the file or directory you wish to ignore from the
Projects, Files, Favorites, or
Status window.
- Choose Ignore (or Mercurial > Ignore) from the right-click
menu of selected file or directory. The IDE ignores the file
or directory whenever Mercurial commands are called on it or
on the directory within which it is stored.
- To change the status of ignored files so that they can be acted upon in
Mercurial, select the specific file and choose Mercurial > Unignore.
- See Also
- Cloning an External Mercurial Repository
- Comparing File Revisions
Legal Notices