~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

pull --overwrite should always overwrite, not just if diverged. (Test case from Robey Pointer)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1026
1026
            except DivergedBranches:
1027
1027
                if not overwrite:
1028
1028
                    raise
 
1029
            if overwrite:
1029
1030
                self.set_revision_history(source.revision_history())
1030
1031
            new_count = len(self.revision_history())
1031
1032
            return new_count - old_count