bzr add

Robey Pointer robey at lag.net
Tue Aug 23 20:41:55 BST 2005


It looks like "bzr add <folder>" adds not just the folder, but  
everything in it.  But sometimes I only want to add *some* things in  
the folder (for example, not .pyc files).  bzr is giving an error on  
attempts to do these partial adds:

$ ../bzr.dev/bzr add templates/*.tal
bzr: error: [u'templates']

The oldest copy of bzr I currently have is @1067, and it's happening  
at least as far back as that.

There are two possible solutions:
1. "bzr add <folder>" adds just the folder, not its contents.  This  
follows the principle of least astonishment since that's what other  
RCS do.
2. "bzr add <new-folder>/<file>" automatically adds any missing  
intermediate folders.

I actually like #2 best.

robey





More information about the bazaar mailing list