1
Description: Avoid deprecated Branch.revision_history().
2
Origin: commit, revision id: jelmer@samba.org-20120221102451-9wz5wjb01drb0am4
3
Author: Jelmer Vernooij <jelmer@samba.org>
4
Last-Update: 2012-02-21
6
X-Bzr-Revision-Id: jelmer@samba.org-20120221102451-9wz5wjb01drb0am4
8
=== modified file 'tests/test_info_xml.py'
9
--- old/tests/test_info_xml.py 2011-10-16 23:56:35 +0000
10
+++ new/tests/test_info_xml.py 2012-02-21 10:24:51 +0000
12
self.assertEqualDiff(expected_xml, out)
13
self.assertEqual('', err)
14
tree1.commit('commit one')
15
- rev = branch1.repository.get_revision(branch1.revision_history()[0])
16
+ rev = branch1.repository.get_revision(branch1.last_revision())
17
datestring_first = osutils.format_date(rev.timestamp, rev.timezone)
19
# Branch standalone with push location
21
self.build_tree(['tree/lightcheckout/a'])
23
tree2.commit('commit one')
24
- rev = repo.get_revision(branch2.revision_history()[0])
25
+ rev = repo.get_revision(branch2.last_revision())
26
datestring_first = osutils.format_date(rev.timestamp, rev.timezone)
27
out, err = self.run_bzr('xmlinfo tree/lightcheckout --verbose')
28
expected_xml = '''<?xml version="1.0"?>
30
tree1 = branch1.bzrdir.open_workingtree()
32
tree1.commit('commit one')
33
- rev = repo.get_revision(branch1.revision_history()[0])
34
+ rev = repo.get_revision(branch1.last_revision())
35
datestring_first = osutils.format_date(rev.timestamp, rev.timezone)
36
out, err = self.run_bzr('xmlinfo -v repo/branch1')
37
expected_xml = '''<?xml version="1.0"?>