[Patch] When bailing because of symlink, print the file that's causing the problem

Michael Ellerman michael+bazaar at ellerman.id.au
Mon May 9 05:35:36 BST 2005


Hi Martin,

Until symlinks are supported it'd be nice to tell people the file
we're moaning about so they can 'bzr ignore' it.

cheers

*** modified file 'bzrlib/add.py'
--- bzrlib/add.py
+++ bzrlib/add.py
@@ -48,7 +48,7 @@
         kind = bzrlib.osutils.file_kind(f)

         if kind != 'file' and kind != 'directory':
-            bailout("can't add file of kind %r" % kind)
+            bailout("can't add file '%s' of kind %r" % (f, kind))

         versioned = (inv.path2id(rf) != None)






More information about the bazaar mailing list