Zimm3r
Zimm3r

Reputation: 3425

hgignore glob ** not matching correctly

I have tried the following hgignore files however both times folders expected to be ignored are listed when runnign the hg status command

syntax: glob

Somefolder/**

However Somefolder is still listed when I then run hg status

So I then tired this version (which should ignore EVERYTHING)

syntax: glob

**

However same result from running the hg status command.

Upvotes: 0

Views: 260

Answers (1)

Santa
Santa

Reputation: 11545

Well, then, I'm not sure what's wrong with your environment, because what you did should work. It works on mine:

santa@samoyed:/tmp/MockProject$ tree .
.
└── Somefolder
    └── Subfolder
        └── ph.txt

2 directories, 1 file
santa@samoyed:/tmp/MockProject$ cat .hgignore 
syntax: glob

Somefolder/**
santa@samoyed:/tmp/MockProject$ hg status
? .hgignore
santa@samoyed:/tmp/MockProject$

Upvotes: 1

Related Questions