Search code examples
mercurialtortoisehg

Select only one line in TortoiseHGs chunk selection for commit


In TortoiseHG there is this chunk-selection for your local changes. How can I select only one line from these chunks to commit? I had this problem a few times now and it's quite annoying you can't select only one line.


Solution

  • TortoiseHG doesn't support this. However you can still get the same functionality with mercurial CLI by setting [ui] interface = curses in your hgrc and then hg commit -i. It will invoke a ncurses based window in which you can select/deselect the individual hunks and lines using spacebar. This is much more powerful than what THG offers.

    interactive commit