251
251
{'blah': default_mapping.revision_id_foreign_to_bzr(c2)},
252
252
local_branch.tags.get_tag_dict())
254
def test_sprout_with_annotated_tag_unreferenced(self):
255
c1 = self.remote_real.do_commit(
257
committer=b'committer <committer@example.com>',
258
author=b'author <author@example.com>')
259
c2 = self.remote_real.do_commit(
260
message=b'another commit',
261
committer=b'committer <committer@example.com>',
262
author=b'author <author@example.com>')
263
porcelain.tag_create(
266
author=b'author <author@example.com>',
268
tag_time=int(time.time()),
271
message=b"Annotated tag")
273
remote = ControlDir.open(self.remote_url)
274
self.make_controldir('local', format=self._to_format)
275
local = remote.sprout(
277
revision_id=default_mapping.revision_id_foreign_to_bzr(c1))
278
local_branch = local.open_branch()
280
default_mapping.revision_id_foreign_to_bzr(c1),
281
local_branch.last_revision())
283
{'blah': default_mapping.revision_id_foreign_to_bzr(c1)},
284
local_branch.tags.get_tag_dict())
255
287
class FetchFromRemoteToBzrTests(FetchFromRemoteTestBase,TestCaseWithTransport):