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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:51:26+00:00 2026-05-27T19:51:26+00:00

We use hg to control the sources for a large project. Whenever we do

  • 0

We use hg to control the sources for a large project. Whenever we do a release, we tag the version in hg.

Now say I take a specific revision (where I’ve fixed a bug for example). I want to know which releases contain this fix, i.e. which tags “cover” this revision.

How do I find this? In hg tags seem to refer only to the tagged changeset. I remember that in ClearCase every ancestor of the tagged revision would be marked too, is there a way to see this information in hg?

Thanks!

  • 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-27T19:51:27+00:00Added an answer on May 27, 2026 at 7:51 pm

    Revsets without any additional extensions can give you something. like

    hg log -r "id(hash):tip and tag()" or shorter and nicer (maybe) version hg log -r "descendants(hash) and tag()"

    Just and example of shortened revset from my repo with merges after revision in question

    >hg glog -r "descendants(c9e3b41ec78f)"
    @  changeset:   65:f202d72d6397
    |  tag:         tip
    |  parent:      63:c778bae76563
    |  user:        Alex Bream
    |  date:        Wed Nov 09 21:42:50 2011 +0600
    |  summary:     2-9 яюыэюёЄ№■ фю 2769
    |
    | o  changeset:   64:625d08492555
    | |  branch:      Cleanup
    | |  parent:      62:eed6619dadb8
    | |  user:        Alex Bream
    | |  date:        Wed Nov 09 21:38:44 2011 +0600
    | |  summary:     ╟рўшёЄър яю 1-1 155
    | |
    o |  changeset:   63:c778bae76563
    |\|  parent:      61:e7ae9e5f725a
    | |  parent:      62:eed6619dadb8
    | |  user:        Alex Bream
    | |  date:        Wed Nov 09 21:33:22 2011 +0600
    | |  summary:     Merge with Cleanup
    | |
    | o  changeset:   62:eed6619dadb8
    | |  branch:      Cleanup
    | |  parent:      59:c9e3b41ec78f
    | |  user:        Alex Bream
    | |  date:        Thu Mar 03 19:19:34 2011 +0500
    | |  summary:     ╟рўшёЄър яю 1-1 131
    | |
    o |  changeset:   61:e7ae9e5f725a
    | |  user:        Alex Bream
    | |  date:        Thu Mar 03 05:40:34 2011 +0500
    | |  summary:     2-9 яю 2745
    | |
    o |  changeset:   60:1393fe759096
    |\|  parent:      57:a38258cac9b8
    | |  parent:      59:c9e3b41ec78f
    | |  user:        Alexander
    | |  date:        Thu Mar 03 04:59:22 2011 +0500
    | |  summary:     Merge ё ўшёЄшыъющ
    | |
    | o  changeset:   59:c9e3b41ec78f
    | |  branch:      Cleanup
    | |  user:        Alexander
    | |  date:        Thu Mar 03 04:54:11 2011 +0500
    | |  summary:     ╟рўшёЄър яЁюыюу яюыэюёЄ№■
    | |
    

    And comparing output of two forms of revsets (same output anyway)

    descendants()

    >hg log -r "descendants(c9e3b41ec78f)" --template "{rev}:{node|short}\n"
    59:c9e3b41ec78f
    60:1393fe759096
    61:e7ae9e5f725a
    62:eed6619dadb8
    63:c778bae76563
    64:625d08492555
    65:f202d72d6397
    

    Direct range definition

    >hg log -r "id(c9e3b41ec78f):tip" --template "{rev}:{node|short}\n"
    59:c9e3b41ec78f
    60:1393fe759096
    61:e7ae9e5f725a
    62:eed6619dadb8
    63:c778bae76563
    64:625d08492555
    65:f202d72d6397
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We use Subversion as our source control system and store the VisualStudio project files
I have some software under svn version control. It consists of sources that I
I know you can use source control software for source code, but can you
Our team is just ramping up to use source control through SVN. We are
What do source control developers use for source control? Is the source for subversion
I use Perforce for source control at work and I want to 'open for
I use SVN as the source control system, and I wonder how to compare
We use Visual Studio 2008 and Surround SCM for source control. SCM drops files
We use TeamCity for continuous integration and Git for source control. Generally it works
I am looking for a lightweight source control system for use on hobby projects

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.