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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:23:18+00:00 2026-06-06T06:23:18+00:00

Mercurial log allows you to restrict the query to branches: hg log -b default

  • 0

Mercurial log allows you to restrict the query to branches:

hg log -b default

But Mercurial glog does not

hg glog -b default => error message

Is there any way to filter glog like this? Perhaps an ugly Perl or Python script operating on

hg glog –style xml | perl UglyScript

I am looking at revsets, but haven’t figured out a way to do this.

—

By the way, why I want to do this, in case there is a better way: my teammates think I am too verbose and do too many fine grain commits, so I want to give them a way to filter out my commit messages from hg glog. I’ll put my stuff on a branch. I’d like them to be able to ignore my branch (or tag, or label, or …) (At the moment I am editing history at every push to the project masrter, which is wasteful and fragile.)

“hg log -b” is fine, but really want glog.

  • 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-06-06T06:23:19+00:00Added an answer on June 6, 2026 at 6:23 am

    Ah ha! I found part of the answer:

    hg glog –r ‘branch(default)’

    hg log –r ‘branch(default)’
    works just like
    hg log –b default

    except that they are in opposite order.
    (Unlike http://markmail.org/thread/43yvy7mljdfgp75h which says that -b x == -r ‘branch(x)’

    hg log –r ‘reverse(branch(default))’

    revsets rule!

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

Sidebar

Related Questions

hg log works. hg log --style does not work. C:\temp\myhg> c:\program files\mercurial\hg log changeset:
Is there any Mercurial extension that can grep for console.log that might have been
Does Mercurial offer any type of extensions that offer functionality similar to TFS's work
In the Mercurial API, is there any way to read the configuration values associated
In Mercurial, how do you examine a single changeset? hg log -l 5 will
I have a Mercurial repository set up on a Linux server, and some (but
I use mercurial for php projects and my .hgignore file is not working. It's
(Mercurial newbie) I'm trying to get hg log to give me the full changeset
Although if I log in at command line as myself hg does work. I
We have a hook in Mercurial that posts the changeset message and a link

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.