Ejemplo n.º 1
0
 def migrate(self, commit_one, commit_two):
     """Migrate from one commit to another"""
     parent = self.find_common_parent(commit_one, commit_two)
     c1 = Commit(self)
     c1.checkout(commit_one)
     c2 = Commit(self)
     c2.checkout(commit_two)
     log = c1.rollback(parent)
     log.extend(c2.rollforward(parent))
     return log