~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_version_info.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-30 13:02:27 UTC
  • mto: This revision was merged to the branch mainline in revision 6418.
  • Revision ID: jelmer@samba.org-20111230130227-c7h1oae7zv585izc
Fix version_info tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
        self.assertEqual(['r1', 'r4', 'unversioned', 'removed'],
223
223
                         file_rev_stanza.get_all('revision'))
224
224
 
 
225
    def test_revision(self):
 
226
        wt = self.create_branch()
 
227
        self.build_tree(['branch/a', 'branch/c'])
 
228
        wt.add('c')
 
229
        wt.rename_one('b', 'd')
 
230
 
 
231
        stanza = self.regen(wt, check_for_clean=True,
 
232
            include_file_revisions=True, revision_id=wt.last_revision())
 
233
        file_rev_stanza = self.get_one_stanza(stanza, 'file-revisions')
 
234
        self.assertEqual(['', 'a', 'b'], file_rev_stanza.get_all('path'))
 
235
        self.assertEqual(['r1', 'r3', 'r2'],
 
236
                         file_rev_stanza.get_all('revision'))
 
237
 
225
238
 
226
239
class PythonVersionInfoTests(VersionInfoTestCase):
227
240