~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/test_xml.py

  • Committer: Martin Pool
  • Date: 2005-10-04 02:27:27 UTC
  • mfrom: (1399)
  • mto: (1185.13.3)
  • mto: This revision was merged to the branch mainline in revision 1400.
  • Revision ID: mbp@sourcefrog.net-20051004022727-aee7064c62e039a7
[merge] merge robertc's format5 integration

 - test status on specific files
 - track x bit
 - baz2bzr fixes
 - remotebranch fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
_committed_inv_v5 = """<inventory>
61
61
<file file_id="bar-20050901064931-73b4b1138abc9cd2" 
62
62
      name="bar" parent_id="TREE_ROOT" 
63
 
      text_version="mbp@foo-123123" name_version="mbp@foo-123123"
64
 
      />
 
63
      revision="mbp@foo-123123"/>
65
64
<directory name="subdir"
66
65
           file_id="foo-20050801201819-4139aa4a272f4250"
67
66
           parent_id="TREE_ROOT" 
68
 
           name_version="mbp@foo-00"/>
 
67
           revision="mbp@foo-00"/>
69
68
<file file_id="bar-20050824000535-6bc48cfad47ed134" 
70
69
      name="bar" parent_id="foo-20050801201819-4139aa4a272f4250" 
71
 
      name_version="mbp@foo-00"
72
 
      text_version="mbp@foo-123123"/>
 
70
      revision="mbp@foo-00"/>
73
71
</inventory>
74
72
"""
75
73
 
115
113
        eq(len(inv), 4)
116
114
        ie = inv['bar-20050824000535-6bc48cfad47ed134']
117
115
        eq(ie.kind, 'file')
118
 
        eq(ie.text_version, 'mbp@foo-123123')
119
 
        eq(ie.name_version, 'mbp@foo-00')
 
116
        eq(ie.revision, 'mbp@foo-00')
120
117
        eq(ie.name, 'bar')
121
118
        eq(inv[ie.parent_id].kind, 'directory')
122
119