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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:47:34+00:00 2026-05-26T20:47:34+00:00

I have got a question regarding suprepositories. Our project is set up like this:

  • 0

I have got a question regarding suprepositories. Our project is set up like this:

+ projectA
    + some files
    + dependencyA
        + some files

dependencyA is a subrepository. It was created this way:

  1. cd projectA
  2. mkdir dependencyA
  3. cd dependencyA
  4. hg init
  5. hg pull ssh://hg@somerandomiphere/dependencyA
  6. cd ..
  7. echo dependencyA = ssh://hg@somerandomiphere/dependencyA > .hgsub
  8. hg add
  9. hg commit
  10. hg push

If I make changes to the suprepository, then commit and push them from main project. Both of them will be pushed to the server since its recursive. Now my colleague wants to pull changes from the server. But since nothing was changed in the main project, it wont work. But if I change something in the main project and push it to server. Upon hg pull he will get the newest changeset and if he does hg update then, it will update the subrepository as well. This is expected behaviour.

Now my question would be, if there is a way to pull changes, but only for subrepository without making a new clone of it or what would be the best way to do it.

  • 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-26T20:47:35+00:00Added an answer on May 26, 2026 at 8:47 pm

    What was suggested above works like I thought it would. The real problem was my way of creating a subrepository.

    Instead of:

    1. cd projectA
    2. mkdir
    3. dependencyA
    4. cd dependencyA
    5. hg init
    6. hg pull ssh://hg@somerandomiphere/dependencyA

    It should have been a simple:

    1. hg clone ssh://hg@somerandomiphere/dependencyA dependencyA

    As we know .hgsusbtate will lock the subrepo on specific revision after commit. This is what happened, but (!) doing hg pull in subrepository ended with an error

    paths cannot contain dot file components
    

    So this means my subrepo was locked on the revision it was updated after commit and it could not pull changes from its repository due to the error shown above. Why this happened is explained pretty well in this accepted answer.

    Solution:

    cloning is the way to go

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

Sidebar

Related Questions

got a question regarding serializing classes that I've defined. I have some classes like
I've got a bunch of files that have sentences ending like this: \@.Next sentence
I have seen this question, and have some more doubts regarding creating a jar
This question about Timers for windows services got me thinking: Say I have (and
Basically, I have the same question as this one , which unfortunately never got
I am (very) new to WPF and I have got a question regarding that.
I've got a question regarding multiple-thread method invocation in Java. Let's say we have
I got some question regarding the shared and static libraries.So let me tell you
I ve got a question regarding jBPM. In one of our projects I developed
I have got just a quick question regarding the header hierarchy when using HTML5

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.