A stupid problem with a nested repo

Yuya Nishihara yuya at tcha.org
Sun Jan 27 14:18:23 UTC 2019


On Sun, 27 Jan 2019 21:00:02 +0700, Victor Sudakov wrote:
> Victor Sudakov wrote:
> > Steve - Gadget Barnes wrote:
> > > Is it possible that the "modified" files have been added to the parent repo rather than namedb? 
> > 
> > In this case, "hg status' in the child "namedb" repo would show them
> > with "?" markers, but this is not happening.
> > 
> > In fact, they may be erroneously added to both repos, but how do I fix
> > this?
> 
> No, this does not seem to be the case:
> 
> $ hg status
> $ hg status -S 
> M namedb/master/biometrica.tomsk.ru
> M namedb/master/rusnet.tomsk.ru
> M namedb/master/tomsk.su
> $ hg log namedb/master/rusnet.tomsk.ru
> abort: path 'namedb/master/rusnet.tomsk.ru' is inside nested repo 'namedb'
> $ 
> 
> Anyway, "hg commit" in the parent repo committed the .hgsubstate file,
> and the problem seems gone for now. 
> 
> Is this normal? Am I expected to commit the .hgsubstate file?

Yes, that's correct.

Until you committed the .hgsubstate, the main repo was tied to some older
revision of the "namedb" repo. That's why "hg status -S" in the main repo
showed modifications from that revision.



More information about the Mercurial mailing list