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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:50:54+00:00 2026-05-28T05:50:54+00:00

In the answer to this question on the kiln stack exchange site, there is

  • 0

In the answer to this question on the kiln stack exchange site, there is a comment that mentions “if you commit from one consumer of the library, the other library consumers do not immediately see those changesets. You have to explicitly pull the changes on the library repo in other consumers.”

i have added a few files to a repository which is referred to in a projects .hgsub & .hgsubstate files, but they are not showing up in the projects subrespository (because the project is quite rightly using the previous change-set it was earlier assigned)

I’d like to know how to edit which changeset a subrepo uses. do I just edit the .hgsubstate file (seems a little “hackish”) or is there a command / kiln website option I can use?

  • 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-28T05:50:55+00:00Added an answer on May 28, 2026 at 5:50 am

    In the subrepository, hg update to the changeset you want the main repository to use. Then, in the main repository, issue hg ci to commit the subrepository change. Mercurial will automatically update the .hgsubstate file with the current parent changeset ID of the subrepository.

    Example (Windows .bat file):

    REM Create main repository
    hg init Example
    cd Example
    echo >file1
    hg ci -Am file1
    cd ..
    
    REM Create another repository
    hg init Library
    cd Library
    echo >file2
    hg ci -Am file2
    cd ..
    
    REM Clone the Library into the main repository
    cd Example
    hg clone ..\Library
    
    REM and configure it as a subrepository.
    echo Library=Library >.hgsub
    
    REM Commit it.
    hg ci -Am "Added Library sub repository."
    
    REM Note .hgsubstate is updated with the current subrepo changeset.
    type .hgsubstate
    cd ..
    
    REM Someone updates the original Library.
    cd Library
    echo >file3
    hg ci -Am file3
    cd ..
    
    REM Main repo isn't affected.  It has a clone of Library.
    cd Example
    hg status -S
    
    REM Update to the latest library
    cd Library
    hg pull -u
    cd ..
    
    REM View the changes to the library in the main repo.
    hg status -S
    
    REM Commit the library update in the main repo.
    hg ci -m "Updated library."
    
    REM Note .hgsubstate is updated.
    type .hgsubstate
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There's probably a Google search that'll answer this question but for the life of
While trying to answer this question I found that the code int* p =
I did some googling to try to answer this question but even after that
In answer to this question Joel Coehoorn said Finally, only after the site's gone
Please do add a comment if more information is needed to answer this question.
This question is a follow-up question to my previous one that can be found
I am hoping that someone can help me answer this question. I am writing
I just want to know whether there is a way to answer this question
In order to answer this question properly I thought that I would: Convert an
Is someone intelligent there who can answer this question? I m doing some task

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.