~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/treeshape.py

  • Committer: Aaron Bentley
  • Date: 2006-04-07 22:46:52 UTC
  • mfrom: (1645 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1727.
  • Revision ID: aaron.bentley@utoronto.ca-20060407224652-4925bc3735b926f8
Merged latest bzr.dev

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
34
35
 
35
36
def build_tree_contents(template):
36
37
    """Reconstitute some files from a text description.
63
64
        yield (dirpath + '/', )
64
65
        filenames.sort()
65
66
        for fn in filenames:
66
 
            fullpath = os.path.join(dirpath, fn)
 
67
            fullpath = pathjoin(dirpath, fn)
67
68
            self.assertFalse(fullpath[-1] in '@/')
68
69
            info = os.lstat(fullpath)
69
70
            if stat.S_ISLNK(info.st_mode):