adding hidden directories?

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Tue Jan 15 00:18:26 CST 2008


Short version: Make your .hgignore not ignore .jedit.

Longer version: Firstly, I would suspect you have a rule in .hgignore
that ignores dirs starting with a period. Secondly, hg only tracks
files, not dirs. So you cannot explictly add normally .hgignore'd
dirs, only files. Normal hg add with a dir argument will add
everything that is *not*.hgignored'd* in that dir.

-peo

On Jan 15, 2008 6:12 AM, j w <jwdevel at gmail.com> wrote:
> I have a directory called .jedit, which holds various settings for my
> text editor, and which I would like to put under revision control.
> I try 'hg add .jedit' but it silently does nothing.
> Any particular reason for that?
>
> Also, I cannot manually add a directory under .jedit - 'hg add
> .jedit/macros' fails the same way.
> I can however, manually add files which live under .jedit, which is my
> current workaround.
>
> Further, I can manually add hidden files with no problem, so I would
> expect it to be the same for hidden dirs.
>
> Is this a bug?
>
> -John
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>


More information about the Mercurial mailing list