I’ve a _project_ directory (well, it’s not named project but never mind that, the underscored are there though) with several subdirectories and a bunch of files. Around of size of 100Mb, give or take is the size of it with the .hg repo inside.
Now, I’ve had another, let’s call _something_ directory with the .hg repo inside, which I’ve moved completely to _project_ and ran hg status. Nothing showed up!
Something has files with dates running up 5 years behind, and some of them are older than project repo, but I don’t think that should matter.
No .hgignore in any of these, anywhere.
Has anyone got a clue why hg status wouldn’t show these “new” files in its subdirectory? Do the underscores in the name have anything to do with it?
…
“Nested” repos?
\_project_\.hg
\_project_\_something_\.hg
You got the issue because you nested the repositories manually. It is wrong and isn’t supposed to work. You won’t see any files added to the nested repository while used
hg statusfor outer one. Proper nesting will solve the issue.https://www.mercurial-scm.org/wiki/Subrepository