Skip to content

Add some basic phase controls to appropriate menus/dialogs

Created originally on Bitbucket by colin-hurley (Colin Hurley)

MercurialEclipse currently provides the user with no means to manipulate changeset phases. This forces the user to use the hg phase command and/or external tools (such as TortoiseHg) to manage phases, and then refresh in Eclipse to detect the change. As a result, it is cumbersome to work with secret phase changesets. It can also be a hassle to use hg-git, where manual management of changeset phases may be needed in some circumstances.

Off the top of my head, I would like to add the following commands to make basic phase management more user-friendly:

  • Commit Dialog - Add a checkbox to enable committing a changeset in secret phase (i.e. this triggers use of the --secret option for hg commit)
  • History View - Add a command to the context menu that enables the user to change the phase of the selected changeset
  • Projects in the Project Explorer, etc. - Add a command to the context menu that enables the user to change the phase of a selected changeset

Attempting to go from a lower phase to a higher phase (e.g. from public back to draft, or from draft to secret) would be supported, but I would prompt the user with an “Are you sure?” type of dialog to confirm the request - this is akin to the hg phase command requiring the --force option in this circumstance. Going from higher phase to lower phase (e.g. draft to public) would not require this explicit confirmation, since the --force option wouldn’t be required for this situation.

Suggestions for additional commands/preferences/etc. are welcome.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information