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