~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-12 15:27:35 UTC
  • mfrom: (4053.3.4 push-trace)
  • Revision ID: pqm@pqm.ubuntu.com-20090312152735-08tf1fguf6b7mpaw
(Jelmer) Split up PushResult.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1383
1383
            "branch is opened.", (1, 8), None))
1384
1384
        self.create_hook(HookPoint('post_push',
1385
1385
            "Called after a push operation completes. post_push is called "
1386
 
            "with a bzrlib.branch.PushResult object and only runs in the "
 
1386
            "with a bzrlib.branch.BranchPushResult object and only runs in the "
1387
1387
            "bzr client.", (0, 15), None))
1388
1388
        self.create_hook(HookPoint('post_pull',
1389
1389
            "Called after a pull operation completes. post_pull is called "
2112
2112
 
2113
2113
        Must be called with self read locked and target write locked.
2114
2114
        """
2115
 
        result = PushResult()
 
2115
        result = BranchPushResult()
2116
2116
        result.source_branch = self
2117
2117
        result.target_branch = target
2118
2118
        result.old_revno, result.old_revid = target.last_revision_info()
2637
2637
        self._show_tag_conficts(to_file)
2638
2638
 
2639
2639
 
2640
 
class PushResult(_Result):
 
2640
class BranchPushResult(_Result):
2641
2641
    """Result of a Branch.push operation.
2642
2642
 
2643
2643
    :ivar old_revno: Revision number (eg 10) of the target before push.