58
58
self.runbzr('checkout branch checkout')
59
59
out, err = self.runbzr('info checkout')
60
60
self.assertEqualDiff(
61
"""branch format: Bazaar-NG Metadir branch format 5
72
0 versioned subdirectories
81
""" % a_branch.bzrdir.root_transport.base,
83
self.assertEqual('', err)
85
def test_info_up_to_date_light_checkout(self):
86
a_branch = self.make_branch_and_tree('branch')
87
self.runbzr('checkout --lightweight branch checkout')
88
out, err = self.runbzr('info checkout')
61
90
"""working tree format: Bazaar-NG Working Tree format 3
62
91
branch location: %s
63
92
branch format: Bazaar-NG branch, format 6
136
165
rev = a_branch.repository.get_revision(a_branch.revision_history()[0])
137
166
datestring = format_date(rev.timestamp, rev.timezone)
138
167
self.assertEqualDiff(
168
"""branch format: Bazaar-NG Metadir branch format 5
171
Branch is out of date: missing 1 revision.
180
0 versioned subdirectories
189
""" % (a_branch.bzrdir.root_transport.base,
192
self.assertEqual('', err)
194
def test_info_out_of_date_light_checkout(self):
195
# note this deliberately uses a checkout at 'None' to
196
# test the out of date message with a revision notin the
198
a_branch = self.make_branch('branch')
200
self.runbzr('checkout --lightweight branch checkout')
201
self.runbzr('checkout --lightweight branch checkout2')
202
self.build_tree(['checkout/file'])
203
self.runbzr('add checkout/file')
204
self.runbzr('commit -m add-file checkout')
205
# now checkout2 should be out of date
206
out,err = self.runbzr('info checkout2')
207
rev = a_branch.repository.get_revision(a_branch.revision_history()[0])
208
datestring = format_date(rev.timestamp, rev.timezone)
209
self.assertEqualDiff(
139
210
"""working tree format: Bazaar-NG Working Tree format 3
140
211
branch location: %s
141
212
branch format: Bazaar-NG branch, format 6