1

I'm sure this is a dumb question, but what is the syntax to ignore my _Resharper.* directories with Bazaar? I've tried ignoring: \_Resharper*.* ./\_Resharper*.*, **/\_Resharper*.*, plus variations of those on the wildcards. No matter what I do, it continues to pick up the directory.

ddaa
  • 52,890
  • 7
  • 50
  • 59
Scott
  • 121
  • 1
  • 6
  • Update: embarrassing thing. I never noticed the directory name was _ReSharper.*. So changed the S to upper case and things are working as expected. – Scott Nov 08 '09 at 12:43

3 Answers3

3

You are probably bitten by the wildcard expansion occuring in the shell.

Type bzr ignore --help and look at the Examples section:

  • Ignore the top level Makefile: bzr ignore ./Makefile
  • Ignore class files in all directories: bzr ignore "*.class"
  • Ignore .o files under the lib directory:bzr ignore "lib/**/*.o"
  • Ignore .o files under the lib directory: bzr ignore "RE:lib/.*\.o"
  • Ignore everything but the "debian" toplevel directory: bzr ignore "RE:(?!debian/).*"
ddaa
  • 52,890
  • 7
  • 50
  • 59
0

You don't need to use backslash there. Just

_Resharper.*

or

_Resharper

will work.

bialix
  • 20,053
  • 8
  • 46
  • 63
  • Actually added that to escape the '_'char.. when I first posted it wasn't showing up. Added it, worked (backslash not visible)... though now both chars show up. – Scott Nov 08 '09 at 12:45
  • try using just quotes or double quotes. – bialix Nov 08 '09 at 13:55
0

#caution At least with version ~2.7.* bazaar will not easily tell you that it is ignoring a **/wildcard/* rule in cases where entities below a matched rule are already versioned (under version control).

example: **/vendor/* still produced entries in $ bzr st for me, below vendor/ until I issued the command $ bzr remove --keep . from within the vendor/ directory

CNSKnight
  • 567
  • 7
  • 14