I'm writing a hook, which is supposed to process files before they actually will be commited. So I found out that I can get list of all files have chanded recenlty like this:
def hook(ui, repo, node, **kwargs):
changedFileList = repo.status()[0]
So, this construction provides me with list of changed files. Now, suppose user selected just some files to be commited (via tortoise ui for example).