How can I make the "commit" abort if there are invalid changes in the sub in Mercurial?
This seems to be all the time for me: I am working on a parent repo. I find and fix a bug in subrepo. I continue to work with the parent repo. I am passing the parent repo with a message like "Feature X added". I press.
At this point, I notice that the subrepo patch was committed and also pushed, with a commit message that has absolutely nothing to do with the subrepo.
The easiest way to make yourself a "commit" of a replacement that would refuse to do anything in this situation, indicating that there are uncommitted changes in the subrepo? Alternatively, maybe this is a parameter that I can set to .hgrc
?
+3
source to share