~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/treeshape.py

- refactor handling of short option names

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
import stat
32
32
 
33
33
from bzrlib.trace import warning
34
 
from bzrlib.osutils import pathjoin
35
34
 
36
35
def build_tree_contents(template):
37
36
    """Reconstitute some files from a text description.
64
63
        yield (dirpath + '/', )
65
64
        filenames.sort()
66
65
        for fn in filenames:
67
 
            fullpath = pathjoin(dirpath, fn)
68
 
            self.assertFalse(fullpath[-1] in '@/')
 
66
            fullpath = os.path.join(dirpath, fn)
 
67
            assert fullpath[-1] not in '@/'
69
68
            info = os.lstat(fullpath)
70
69
            if stat.S_ISLNK(info.st_mode):
71
70
                yield (fullpath + '@', os.readlink(fullpath))