I think it would be good to have a couple of tests directly for "is_realpath_outside_tree", rather than only indirectly via 'run_bzr(['add', ...])'. Especially since that doesn't actually require symlinks to do the testing, which means it can be done on all platforms.
Otherwise I think I'm happy with the conceptual change.
Your error class seems a bit... verbose nderSymLinkedDi rectoryOutsideT reeNotSupported
AddingContentsU
Also, you have some lines that are longer than 80 characters. You can usually split them with:
foo = ("this is some text"
" and a bit more text\n")
6 from bzrlib.trace import mutter, note, warning, is_quiet, get_verbosity_level outside_ tree(tree_ path, filepath):
7
8 +def is_realpath_
9 +
10 + if not osutils.is_inside(
^- You should have two blank spaces before the def, and is_realpath... should have a docstring.
..
66 + os.mkdir( 'tree/inside_ working_ copy') tree([' tree/inside_ working_ copy/a_ file.txt' ])
67 + self.build_
^- you can use:
self.build_ tree([' tree/inside_ working_ copy/', 'tree/inside_ working_ copy/a_ file.txt' ])
instead.
I think it would be good to have a couple of tests directly for "is_realpath_ outside_ tree", rather than only indirectly via 'run_bzr(['add', ...])'. Especially since that doesn't actually require symlinks to do the testing, which means it can be done on all platforms.
Otherwise I think I'm happy with the conceptual change.