238
236
inter_branch.pull(stop_revision=revid1)
239
237
self.assertEquals(revid1, newbranch.last_revision())
242
240
path, (gitsha1, gitsha2) = self.make_tworev_branch()
245
241
oldrepo = Repository.open(path)
246
242
revid1 = oldrepo.get_mapping().revision_id_foreign_to_bzr(gitsha1)
247
243
revid2 = oldrepo.get_mapping().revision_id_foreign_to_bzr(gitsha2)
248
244
newbranch = self.make_branch('g')
249
245
inter_branch = InterBranch.get(Branch.open(path), newbranch)
251
247
self.assertEquals(revid1, newbranch.last_revision())
255
252
class ForeignTestsBranchFactory(object):