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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:51:56+00:00 2026-05-20T23:51:56+00:00

The command hg log -v -r 2:5 can be used to see details on

  • 0

The command hg log -v -r 2:5 can be used to see details on changesets 2/3/4/5 – is there a similar way you can view changeset details on JUST changesets 2 and 5?

  • 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-20T23:51:57+00:00Added an answer on May 20, 2026 at 11:51 pm

    Use separate -r specifiers:

    hg log -v -r 2 -r 5
    

    It will give you the log entries in the same order you specify rev numbers.

    Here’s a test which demonstrates this:

    mkdir hgTest; cd hgTest; hg init; echo "0" > 0.txt; hg addremove; hg commit -m "Added file 0.txt"; echo "1" > 1.txt; hg addremove; hg commit -m "Added file 1.txt"; echo "2" > 2.txt; hg addremove; hg commit -m "Added file 2.txt"
    

    Now run hg log -v -r 0 -r 2 in the hgTest directory, and you’ll see:

    changeset:   0:22deafd4b5da
    user:        aUser
    date:        Fri Mar 25 17:37:01 2011 +0000
    files:       0.txt
    description:
    Added file 0.txt
    
    
    changeset:   2:39fedf6f9f56
    tag:         tip
    user:        aUser
    date:        Fri Mar 25 17:37:01 2011 +0000
    files:       2.txt
    description:
    Added file 2.txt
    

    Notice there’s no mention of the file 1.txt which was added in revision 1.

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

Sidebar

Related Questions

Is there a way to log the commands, make invokes to compile a program?
I'm trying to find a way to write some unit-tests that can be used
I used this command to find mp3 files and write their name on log.txt:
I would like to know how I can see the result of command like
Can the SQL truncate table command be used within a transaction? I am creating
Is there command which can show me list of all available commands in GIT?
The character > (or >>) can be used with a command in Windows to
tail -f test.log Above command will tail the log which runs the process behind
How many times have you seen someone trying to Log the command I run
I have a command (cmd1) that greps through a log file to filter out

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.