Have a look at the record extension (which comes bundled with Mercurial).
Note that since Mercurial doesn’t have the concept of the staging area like git, running hg record
will simply allow you to examine, hunk by hunk, the modifications in your working copy. Any changes you choose to record will be committed, and any changes you choose not to record are simply left as modifications in your working copy.