941
980
def update_revisions(self, other, stop_revision=None):
942
981
"""See Branch.update_revisions."""
945
982
if stop_revision is None:
946
983
stop_revision = other.last_revision()
947
984
### Should this be checking is_ancestor instead of revision_history?
948
985
if (stop_revision is not None and
949
986
stop_revision in self.revision_history()):
953
989
pullable_revs = self.pullable_revisions(other, stop_revision)
954
990
if len(pullable_revs) > 0:
955
991
self.append_revision(*pullable_revs)