~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/add.py

  • Committer: Aaron Bentley
  • Date: 2005-09-19 02:52:24 UTC
  • mto: (1185.1.29)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: aaron.bentley@utoronto.ca-20050919025224-1cc3c70640086e09
TODO re tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
 
from bzrlib.inventory import InventoryEntry
18
17
from bzrlib.trace import mutter, note, warning
19
18
from bzrlib.errors import NotBranchError
20
19
from bzrlib.branch import Branch
23
22
 
24
23
def glob_expand_for_win32(file_list):
25
24
    import glob
 
25
    
26
26
    expanded_file_list = []
27
27
    for possible_glob in file_list:
28
28
        glob_files = glob.glob(possible_glob)
96
96
 
97
97
        kind = bzrlib.osutils.file_kind(af)
98
98
 
99
 
        if not InventoryEntry.versionable_kind(kind):
 
99
        if kind != 'file' and kind != 'directory':
100
100
            if f in user_list:
101
101
                raise BadFileKindError("cannot add %s of type %s" % (f, kind))
102
102
            else: