~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/test_xml.py

  • Committer: Robert Collins
  • Date: 2005-09-30 04:52:11 UTC
  • mto: This revision was merged to the branch mainline in revision 1397.
  • Revision ID: robertc@robertcollins.net-20050930045210-1f157d2aaaa73c63
convert name_version to revision in inventory entries

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"
 
63
      text_version="mbp@foo-123123" revision="mbp@foo-123123"
64
64
      />
65
65
<directory name="subdir"
66
66
           file_id="foo-20050801201819-4139aa4a272f4250"
67
67
           parent_id="TREE_ROOT" 
68
 
           name_version="mbp@foo-00"/>
 
68
           revision="mbp@foo-00"/>
69
69
<file file_id="bar-20050824000535-6bc48cfad47ed134" 
70
70
      name="bar" parent_id="foo-20050801201819-4139aa4a272f4250" 
71
 
      name_version="mbp@foo-00"
 
71
      revision="mbp@foo-00"
72
72
      text_version="mbp@foo-123123"/>
73
73
</inventory>
74
74
"""
116
116
        ie = inv['bar-20050824000535-6bc48cfad47ed134']
117
117
        eq(ie.kind, 'file')
118
118
        eq(ie.text_version, 'mbp@foo-123123')
119
 
        eq(ie.name_version, 'mbp@foo-00')
 
119
        eq(ie.revision, 'mbp@foo-00')
120
120
        eq(ie.name, 'bar')
121
121
        eq(inv[ie.parent_id].kind, 'directory')
122
122