[Bug 5914] New: Directories in a subrepository not showing on status
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Mon Jun 11 14:09:49 UTC 2018
https://bz.mercurial-scm.org/show_bug.cgi?id=5914
Bug ID: 5914
Summary: Directories in a subrepository not showing on status
Product: Mercurial
Version: 4.5.3
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: Mercurial
Assignee: bugzilla at mercurial-scm.org
Reporter: mantra_ at gmx.com
CC: mercurial-devel at mercurial-scm.org
Mercurial doesn't show files that are in subdirectories, if those
subdirectories contain a repository themselves.
This leads to undesirable consequences.
E.g. I have a directory containing my project, and I want to start using
Mercurial to manage it. I run 'hg init' in the directory, then 'hg add *'. I
check with 'hg status' that the repository is up to date with respect to the
working copy, and run 'hg clone' somewhere else to make a copy.
However, if unknown to me someone else had created a repository inside a
subdirectory of the original project to track one small part of it, this
process will silently fail - I will have what I expect to be a full copy of the
project, but it won't include the subdirectory.
Steps to reproduce:
Directory structure:
project_folder
file_a
subfolder
file_b
Commands:
subfolder>hg init && hg add * && hg commit
project_folder>hg init && hg add * && hg commit
remote_place>hg clone project_folder
Expected result: remote_place contains a full copy of project_folder
Actual result:remote_place/project_folder doesn't contain subfolder
Not sure if this is by design or accidental, but if by design, it seems very
counterintuitve.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list