1. TortoiseHg
  2. TortoiseHg
  3. thg
  4. Issues
Issue #2455 resolved

Null-merging a changeset with itself should not be allowed

Kris Van Hulle
created an issue

Scenario 1: -update to changeset X -right-click on changeset X, select 'Merge with local' -click 'Next' => error message with 'abort: merging with a working directory ancestor has no effect'

This is as it should be.

Scenario 2: -update to changeset X -right-click on changeset X, select 'Merge with local' -expand 'Options', check 'Discard all changes from merge target (other) revision' -click 'Next', then 'Discard', 'Next', 'Commit Now', and 'Finish'. => changeset X has been merged with itself.

This results in an changeset merged with itself, visualization that doesn't make sense, and distressed users. :-)

I'm not sure if this is a TortoiseHg bug, or a Hg bug. If it's Hg just close it and I'll re-submit it to the Hg bugtracker.

Comments (2)

  1. Steve Borho


    optimally the merge option would be disabled for the current working parent, but at the least we should check for this in the merge dialog when the null merge option is enabled.

  2. Log in to comment