By default all files changed in a changeset are on the same line, which makes them very easily to skip one or two, and hard to read.
How to make each file show on its own separate line?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The real way to see information about changed files is to use
hg status. This shows the files that were modified in revision 100:But if you want to have the log messages as well, then
hg logis of course a natural starting point. Unfortunately there is no built-in switch that will make it display one file per line.However, the output of
hg logis controlled by a template system and you can write your own styles for it. The default style is here and you can customize to do what you want by changingto
Then save the new style as
my-default.styleand addto your configuration file. This gives you one file per line and it even works when there are spaces in your file names.
I’m aware of one problem: you lose colors in the
hg logoutput. It turns out that Mercurial is cheating here! It doesn’t actually use the default template I showed you when generating log output. It doesn’t use any template system at all, it just generates the output using direct code since this is faster. The problem is that the color extension only work with the hard-coded template. When you switch to a custom template and thereby invoke the template engine, you lose the color output.However, you can recover the colors by inserting the ANSI escape codes directly into your template (on Unix-like systems). Changing
to
does the trick and hard-codes a yellow header line for the changeset. Adjust the
changeset_verboseandchangeset_quietlines as well and you’ll have colored output with your own template.