[Bug 4762] New: wish: Ignoring .hg dirs in subdirs of a repo

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Fri Jul 24 16:22:01 CDT 2015


http://bz.selenic.com/show_bug.cgi?id=4762

          Priority: normal
            Bug ID: 4762
          Keywords: easy
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: wish: Ignoring .hg dirs in subdirs of a repo
          Severity: feature
    Classification: Unclassified
                OS: All
          Reporter: gunther.klessinger at axiros.com
          Hardware: All
            Status: UNCONFIRMED
           Version: unspecified
         Component: Mercurial
           Product: Mercurial

Mercurial is ignoring any directory within a repo as soon as it finds an .hg
dir there, which makes sense most of the time. Subrepos allow to manage
dependencies between otherwise independently tracked but, regarding the app,
dependent repos and thats what you want to have  most of the time.



But still, since Mercurial is a powerful tool alone for local (sub)directory
state management, it would be very nice to be able switch this behaviour off,
e.g. by allowing to add and respecting a subdirectory's .hg dir within
.hgignore - so that hg treats all files within the subdir normally, i.e. as if
the .hg folder would not be there.

git does it even w/o explicitly git-ignore it but thats going too far, imho.

Right now the only chance I have is to symlink .hg to an ignored directory
elsewhere (then it is a file and not a dir so hg is not ignoring the containing
dir) but thats a bit awkward.

Cheers & and thanks so much for a great tool!
Gunther

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list