how to use working tree ignores in windows

Asked by Muhammad Bashir Al-Noimi on 2012-02-15

I tried to specify some folders to be ignored but it didn't work at all.

How can I do it in Windows?

Procedures:
1) Added ".bzrignore" to the repository
2) Modifiled ".bzrignore" as following:
dist/*.*
3) Committed ".bzrignore" to the repository
4) Updated the repository
5) but bzr still suggest to add "dist" to the working tree!

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Jelmer Vernooij
Solved:
2012-02-15
Last query:
2012-02-15
Last reply:
2012-02-15
Martin Packman (gz) said : #1

With "dist/*.*" you've told it to ignore everything inside the dist folder, but not the folder itself.

What you generally want is just to run:

    bzr ignore ./dist

Which tells bzr to ignore anything named dist in the branch's root directory.

Best Jelmer Vernooij (jelmer) said : #2

On 02/15/2012 04:35 PM, M. Bashir Al-Noimi wrote:
> New question #187850 on Bazaar:
> https://answers.launchpad.net/bzr/+question/187850
>
> I tried to specify some folders to be ignored but it didn't work at all.
>
> How can I do it in Windows?
>
> Procedures:
> 1) Added ".bzrignore" to the repository
> 2) Modifiled ".bzrignore" as following:
> dist/*.*
> 3) Committed ".bzrignore" to the repository
> 4) Updated the repository
> 5) but bzr still suggest to add "dist" to the working tree!
You only added the files *inside* of dist to the ignore file. If you
want to ignore 'dist' itself too, add it as a separate entry in the
.bzrignore file.

Cheers,

Jelmer

Thanks Jelmer Vernooij, that solved my question.