/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_testament.py

Make sure strict testaments indicate when an execute bit is true

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
from bzrlib.branch import Branch
27
27
from bzrlib.testament import Testament, StrictTestament
28
28
from bzrlib.trace import mutter
 
29
from bzrlib.transform import TreeTransform
29
30
from bzrlib.osutils import has_symlinks
30
31
 
31
32
 
46
47
                             ('src/foo.c', 'int main()\n{\n}\n')])
47
48
        self.wt.add(['hello', 'src', 'src/foo.c'],
48
49
                             ['hello-id', 'src-id', 'foo.c-id'])
 
50
        tt = TreeTransform(self.wt)
 
51
        trans_id = tt.trans_id_tree_path('hello')
 
52
        tt.set_executability(True, trans_id)
 
53
        tt.apply()
49
54
        self.wt.commit(message='add files and directories',
50
55
                 timestamp=1129025483,
51
56
                 timezone=36000,
236
241
message:
237
242
  add files and directories
238
243
inventory:
239
 
  file hello hello-id 34dd0ac19a24bf80c4d33b5c8960196e8d8d1f73 test@user-2 no
 
244
  file hello hello-id 34dd0ac19a24bf80c4d33b5c8960196e8d8d1f73 test@user-2 yes
240
245
  directory src src-id test@user-2 no
241
246
  file src/foo.c foo.c-id a2a049c20f908ae31b231d98779eb63c66448f24 test@user-2 no
242
247
properties: