Rationale behind disallowing `hg add nestedrepo/file` to main repo?
Matt Mackall
mpm at selenic.com
Thu May 26 17:28:17 UTC 2011
On Thu, 2011-05-26 at 15:03 +0200, Roman wrote:
> Hi, for some time now (since this commit:
> http://selenic.com/hg/rev/c7e8fe11f34a ) mercurial does not allow
> nested repository files to be tracked in main repository, like in this
> commit:
It actually goes back more than a year earlier to here:
http://www.selenic.com/hg/diff/5987c1eac2ce/mercurial/dirstate.py
> Does anyone remember discussion about this restriction?
> Does anyone can point out reasons why this is restricted?
The short story is it was too easy for people to accidentally commit
files in the higher-level repo. And that would be really bad news for
the many people using subrepos today.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list