Setup
I am working on a feature A. My current uncommited changes in one file are:
aaa
-bbb
+ccc
+ddd
eee
However, I realize that I could and should split this into 2 commits:
First commit:
aaa -bbb +ccc eee
Second commit:
aaa ccc +ddd eee
Actual code is multiple change sets on multiple files.
Problem
Lines are too close to each other, and Mercurial (using TortoiseHg) considers them a single change set.
Commit screen has a checkboxes for single change set, not for individual lines.
Shelve feature also doesn't allow shelving single lines.
Mercurial queue commit screen doesn't have any checkboxes at all.
Only way seems to be removing all lines of the second commit manually, then create first commit, then reapply lines back manually and do second commit. This is error prone and a lot of work.
Question
Can I force mercurial to consider each row as a separate change set or shelve single lines from change set?