Community
Participate
Working Groups
Steps how to reproduce: 1. open the History View 2. select one commit in the history, open the context menu and choose 'Revert Commit' 3. this immediately creates a new commit that undos the selected commit, there is no possibility to include a Change-ID for Gerrit into the commit message of this new commit Workaround: A Change-ID can be included into the new commit by amending it. However here it is strange that if the 'Compute Change-Id for Gerrit Code Review' is automatically selected due to the preference setting that a Change-ID should always be included, a Change-ID is NOT included into the commit message when the commit dialog is confirmed. Only when I first deselect and then reselect the 'Compute Change-Id for Gerrit Code Review' option I finally get a Change-ID. I would expect that the 'Revert Commit' action at least includes a Change-Id into the commit message if I have configured in the preferences that should a Change-ID should always be included.
If a repository is configured to work with gerrit then we should automatically generate a change-id.
(In reply to comment #0) > Workaround: > A Change-ID can be included into the new commit by amending it. However here it > is strange that if the 'Compute Change-Id for Gerrit Code Review' is > automatically selected due to the preference setting that a Change-ID should > always be included, a Change-ID is NOT included into the commit message when > the commit dialog is confirmed. Only when I first deselect and then reselect > the 'Compute Change-Id for Gerrit Code Review' option I finally get a > Change-ID. This works without deselecting and reselecting with current nightly build EGit 1.1.0.201108301258. So with this version (to be released soon with Indigo SR1) the workaround is to amend the revert commit and click "Compute Change-Id for Gerrit Code Review" to insert the missing Change-Id.