~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

[patch] show number of revisions pushed/pulled/merged (Robey Pointer)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1117
1117
        """See Branch.pull."""
1118
1118
        source.lock_read()
1119
1119
        try:
 
1120
            old_count = len(self.revision_history())
1120
1121
            try:
1121
1122
                self.update_revisions(source)
1122
1123
            except DivergedBranches:
1123
1124
                if not overwrite:
1124
1125
                    raise
1125
1126
                self.set_revision_history(source.revision_history())
 
1127
            new_count = len(self.revision_history())
 
1128
            return new_count - old_count
1126
1129
        finally:
1127
1130
            source.unlock()
1128
1131