Mercurial: Revert a single hunk

前端 未结 3 1803
既然无缘
既然无缘 2021-02-07 06:43

How do I revert a single hunk in Mercurial, similar to the way it\'s done in darcs, i.e. it asks me for each hunk and file whether I want to revert it? Is it possible using Tor

3条回答
  •  走了就别回头了
    2021-02-07 07:02

    For reversing a changeset on a single file try:

    hg diff -c | patch -R

    That will reverse the changeset introduced by that revision on that filename. Now if the same darcs/git style cherry-picking behavior could be included in that somehow I would be very happy.

提交回复
热议问题