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

  • SEARCH
  • Home
  • 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 3990540
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:30:28+00:00 2026-05-20T06:30:28+00:00

Just learning about mercurial’s –style and –template options that can be used on hg

  • 0

Just learning about mercurial’s --style and --template options that can be used on hg log and hg tip and I find them to be extremely helpful, but I can’t figure out where to put my “style files”

I have a “style file” which will allow me to do a hg tip --style ./my-style — and it works great. Except that I don’t want this style file to be a file under my project. And I want to be able to use it on all my projects. I don’t want it to be the default style (so it isn’t an option to update .hgrc‘s style field).

Where should I put this file? Do I just need to put in in my home directory and refer to it like hg tip --style ~/my-style?

Not sure if you need to know, but although I use Windows at times, I mostly use Linux.

  • 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-20T06:30:28+00:00Added an answer on May 20, 2026 at 6:30 am

    It doesn’t really matter where you put it. I usually organize my hg-related files in a single directory in my home directory which I call ~/.hgstuff. I have an hgignore and some other common settings files in there.

    You can also use the [alias] section to define aliases which will automatically apply your style file. Eg:

    [alias]
    stip = tip --style ~/.hgstuff/my-style
    

    Then you just need to run hg stip to get your stylized version.

    If you want to use the style for every command, you can set it in the [ui] section:

    [ui]
    style = ~/.hgstuff/my-style
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just learning about SproutCore now, seems great. But I can't find a good
I'm just learning about them, and find it discouraging that they have been deprecated.
I'm just learning about python. I'm fairly new. I have the following code that
Just learning about sql joins and things, and I have a question. Can you
I'm just learning about Collection Operators and my first example isn't working. How can
I'm just learning about binary and bytes. I understand that 8 bits make up
I just started learning about Lucene and I get how it can be very
Ok, so I'm just learning about memory leaks. I ran Valgrind to find memory
Just learning about with statements especially from this article question is, can I pass
I am just learning about LINQ to XML in all its glory and frailty,

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.