Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7005149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:18:54+00:00 2026-05-27T21:18:54+00:00

By default all files changed in a changeset are on the same line, which

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:18:55+00:00Added an answer on May 27, 2026 at 9:18 pm

    The real way to see information about changed files is to use hg status. This shows the files that were modified in revision 100:

    $ hg status -c 100
    

    But if you want to have the log messages as well, then hg log is 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 log is 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 changing

    file = ' {file}'
    

    to

    file = '{file}\n'
    

    Then save the new style as my-default.style and add

    [ui]
    style = ~/path/to/my-default.style
    

    to 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 log output. 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

    changeset = 'changeset:   {rev}:{node|short}\n{branches}...
    

    to

    changeset = '\033[33mchangeset:   {rev}:{node|short}\033[0m\n{branches}...
    

    does the trick and hard-codes a yellow header line for the changeset. Adjust the changeset_verbose and changeset_quiet lines as well and you’ll have colored output with your own template.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

when started, jetty per default loads all directories and war-files in its webapps directory,
I have like 50 different php files which all use the mail function. After
Python's subprocess module by default passes all open file descriptors to any child processes
By default in all browsers, title attributes only show on mouse over. I want
I'd like to remove all default values that have been setup in a particular
I am trying to block all default methods except create and update in my
When Instantiating a class, Windsor by default treats all public properties of the class
I need to place default text to all rows for particular column in jquery
The C++ specification says the default destructor deletes all non-static members. Nevertheless, I can't
I want to have site wide default settings for all jQuery validation uses on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.