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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:33:55+00:00 2026-05-15T17:33:55+00:00

Using Mercurial, say if I do an hg pull and hg up and now

  • 0

Using Mercurial, say if I do an hg pull and hg up and now the local repo and working directory are both up to date.

What if I commit often, say 1 day later, and then 2 days later, and want to diff with the revision as of right now?

Otherwise, the diff is always comparing to the previous committed version.

I can use pencil and paper and write down the revision number right now, say, 4117, and then 1 day later, 2 days later, and any time before I am sure and push to the remote central repo, do an

hg vdiff -r 4117      

(either using vdiff or diff). But instead of remembering this “magic number” 4117, is there a way to make Mercurial somehow remember this number? That way, hg vdiff is to see the difference between minor changes against committed code, but there is a diff that shows all changes before pushing to the remote repo.

(or, if there is command that shows the revision number since your last pull, which should also show 4117, so on bash we can do something like hg vdiff -r `hg --what-is-last-pull` )

Update: does hg out --patch show the diff of what would be pushed to the remote repo? If so, maybe it serves the purpose without caring the “magic number”. But how to show the patch diff using kdiff3 or any other diff tools? Also, it seems we can do hg out and if we see 4118, 4119, 4120, then we know if we do hg vdiff -r ___ we should use (4118 – 1) which is 4117.

Update 2: actually, hg out --patch shows the diff between local repo and the remote repo, so it is close, but not exactly the same as the diff between working directory and the local or remote repo.

  • 1 1 Answer
  • 1 View
  • 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-15T17:33:55+00:00Added an answer on May 15, 2026 at 5:33 pm

    If you want to mark a revision you can use bookmarks extensions. It is shipped with mercurial. Documentationis available here

    In your case,

    hg pull -u
    hg bookmarks lastpull
    ..hack..hack..
    hg ci -m new-hack
    hg diff -r lastpull:tip
    hg bookmarks -d lastpull
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using Mercurial, how do you undo all changes in the working directory since
Using Mercurial, TortoiseHG, Win XP. I had a working directory with a number of
We've been using mercurial for a while now and everything is working fine. The
I'm using Mercurial locally for a project (it's the only repo there's no pushing/pulling
I am using Mercurial version control for my project. Everything like push , pull
We are working with severall people on the same project and are using Mercurial
Using Mercurial, we can commit one file by using hg commit file.rb or 1
I created a backup of my mercurial repository using hg bundle --all name.hg Now,
Possible Duplicate: Using mercurial, what's the easiest way to commit and push a single
I've been using Mercurial for a few weeks now and don't understand why when

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.