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 6954825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:39:25+00:00 2026-05-27T14:39:25+00:00

by default, just typing hg in the command prompt will show the basic help

  • 0

by default, just typing hg in the command prompt will show the basic help – what is nice for novice, of course.

But is there a way to modify this, so that for example the current summary is shown?
(i.e. get the result of hg sum when just typing hg).


BTW:
What I do in place of that, is having one character alias configured like this

[alias]
, = glog -l5 --template "{rev}:{node|short} [{tags}] {desc|firstline}\n"
. = !%HG% sum && echo. && echo *** GUARDS *** && %HG% qsel && echo. && echo *** applied PATCHES *** && %HG% qap

I just want to know if this can further be optimized.

  • 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-27T14:39:26+00:00Added an answer on May 27, 2026 at 2:39 pm

    No, there is no such feature in Mercurial. You can do it with a small extension, though:

    import sys
    from mercurial import dispatch, extensions, commands
    
    def uisetup(ui):
        extensions.wrapfunction(commands, 'help_', default)
    
    def default(orig, ui, repo, **opts):
        if len(sys.argv) == 1:
            # No command given
            sys.argv.append('summary')
            return dispatch.run()
        else:
            return orig(ui, repo, **opts)
    

    Put the above in a file called, say, default.py and load the extension. A plain hg will now behave like hg summary and things like hg add -h still trigger the help.

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

Sidebar

Related Questions

I have a really standard splash screen, just a simple Default.png, but for whatever
I know that by typing @@ I execute the last @ command. But can
load() just returns a proxy by default and database won’t be hit until the
I just realised that Office 2007 now shows multiple pages per default. I can
I just want to see error insteas of asp.net showing me default error Server
I've just installed Maven2 for the first time. By default it pulls down a
I've just installed ASP.NET MVC on my Vista x64 box, and created a default
Just a general curiosity question. Why is this namespace System.Collections.Generic added by default in
Just started my first MVC 2.0 .net application. And I set up some default
We have a couple ASP MVC websites just using the standard VS templates default

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.