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

  • Home
  • SEARCH
  • 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 6946301
In Process

The Archive Base Latest Questions

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

When I was using Subversion as part of the build process I’d run an

  • 0

When I was using Subversion as part of the build process I’d run an ‘svn info’ and capture the unique ID number and echo it to a header file for inclusion by other programs. This made it easy for users to say for example, ‘I’m running build 456’ and given the number 456 I could always cross reference exactly what they were running.

I’m trying to figure out how to achieve the same thing with Mercurial. ‘hg summary’ displays an integer id as well as the hex hash code. From what I was reading the integer id could be different for different people. I’m supposing the hash code is unique, but it’s not very user friendly.

Is the hg hash code the only unique way of identifying a particular version of files in Mercurial?

Thank you,
Fred

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

    Yes it is the only way to uniquely identify a changeset.

    More details in the documentation : ChangeSet and ChangeSetID

    If you want to use an integer number, I see two possible solution depending on your build process.

    1. If the build always happens on the same machine (ie: same repository), you can use the integer id because it never changes on a particular repo (except if you do history rewriting)
    2. If the build of a particular version only happens once, you can use a variable that you increment each time in your build script.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are using Subversion to keep track of our code. As part of the
When using Subversion (svn) for source control with multiple projects I've noticed that the
I'm using subversion (TortoiseSVN) and I want to remove the .svn folders from my
I'm using Subversion and Capistrano to deploy my rails app. Part of the organization
I'm looking adding Subversion's revision number to the name of each .js file we
Possible Duplicate: SVN / Subversion 1.7 and Eclipse Subversive & JavaHL I'm using Subversion
I updated a projected on my SVN using Subversion on Eclipse and there was
Using subversion 1.5 I have branch B which was branched off of branch A.
I've been using Subversion for a few years and after using SourceSafe , I
I've been using Subversion for code control with TortoiseSVN to interface with the server

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.