hg status and subrepos

Brian Brown brian at techgame.net
Wed May 25 21:18:23 UTC 2011


Hey folks,

I've got a setup with lots of subrepos and some of them 2 or 3 levels deep. At my root repo, I'll run "hg st -S" and "hg sum" and go checkin things that need to be checked in. Then I go back to the root and try to check it in, but it tells me "abort: uncommitted changes in subrepo X".

If I go to X and run "hg st", it says everything is fine, which isn't true. It has a subrepo that is a newer version than listed in it's .hgsupstate, so I have to run through the "hg sum, hg st -S" routine and check in X again. Then I can go back to the root and check it in.

Can't "hg status" just tell us if a subrepo is out of sync, or maybe be able to set a flag in the .hgrc that let's us pick how it will behave?

Thanks!

- Brian




More information about the Mercurial mailing list