Saturday, 15 September 2012

version control - hg add whole directory despite being listed in the .hgignore -


I have two branches which are the same in my tracchories. Heigenor file: dir /

A branch (development) should ignore this directory, while ignoring not the other (released) needed. I know that I can use hg add dir / somefile despite the entry in the hgignore file. But now I want to add the whole directory to recursively.

I searched for and tried

  hg add dir # hg add dir * # does not add anything Add hg add dir / # nothing Hg add dir / * # combines files in dir only but does not include hg add dir / ** # in sub-directories only, but not in sub-directory   

but it It is that do not work again, I can use the add dir / * dir / * / * dir / * / * / * and so on, but it is upset. Is there another wildcard? Can I use it instead or is it another way to accomplish this?

PS: I In the meantime, I was coming with a solution:

  Add HG - Draw-Run - Overbose 'HG Status - Class = "Post-Text" itemprop = "text"> 

-Inegrad - -A-Status - EXAlI **. DS_Store dir / `

This shows a list of files that will add it if you really want to add them, then use the following command:

 < Code> hg add 'hg position - align - no-position - exclude **. DS_Store dir / `  

Hope this helps someone.

No comments:

Post a Comment