D6005: uncommit: added interactive mode -i(issue6062)

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Wed Mar 13 04:32:20 EDT 2019

pulkit added a comment.

  In https://phab.mercurial-scm.org/D6005#89182, @martinvonz wrote:
  > Can you update the commit message to explain how this works? I think I saw somewhere else that it first uncommits everything and then does an interactive amend. Is that correct?
  Yes, this is correct.
  > Also, I just tried to use this feature and it failed (depending on how many lines were added). I added two lines to a file, committed, then ran `hg uncommit -i` and selected the first line. Then I got this:
  >   starting interactive selection
  >   patching file z
  >   Hunk #1 succeeded at 2 with fuzz 2 (offset -1 lines).
  Yes this is also expected with the current implementation. Sometimes uncommit can fail and it will report `Hunk Failed` like this. There is definitely lot to improve in this implementation and I am fine with having this in core first.

  rHG Mercurial


To: taapas1128, #hg-reviewers
Cc: pulkit, martinvonz, mercurial-devel

More information about the Mercurial-devel mailing list