~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/treeshape.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-03 23:02:16 UTC
  • mfrom: (2951.1.1 pack)
  • Revision ID: pqm@pqm.ubuntu.com-20071103230216-mnmwuxm413lyhjdv
(robertc) Fix data-refresh logic for packs not to refresh mid-transaction when a names write lock is held. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        filenames.sort()
66
66
        for fn in filenames:
67
67
            fullpath = pathjoin(dirpath, fn)
68
 
            if (fullpath[-1] in '@/'):
69
 
                raise AssertionError(fullpath)
 
68
            assert not (fullpath[-1] in '@/')
70
69
            info = os.lstat(fullpath)
71
70
            if stat.S_ISLNK(info.st_mode):
72
71
                yield (fullpath + '@', os.readlink(fullpath))