I was wondering how to return files added / changed / deleted for commit in this format:
<modifier> file <modifier> path/to/a/file <modifier> path/to/another/file
In git, I do this: "git show --pretty =" format: "--name-status commitish" and get:
D file A path/to/a/file M path/to/another/file
For mercury, I canβt figure out how to do this using templates. I have a style file:
changeset = "{file_mods}{file_adds}{file_dels}" file_add = "A {file_add}\n" file_mod = "M {file_mod}\n" file_del = "D {file_del}\n"
and with this style and the command "hg log -r commitish -style ~ / .hgstyle" I get almost what I want:
M path/to/another/file A path/to/a/file D file
There is another problem with mercurial files - files are not sorted in order.
How to get the same result as in git command (with modifiers and sorted correctly) on mercurial?
Titas source share