/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: James Henstridge
  • Date: 2008-04-09 03:09:58 UTC
  • mto: (3360.2.2 prepare-1.4)
  • mto: This revision was merged to the branch mainline in revision 3361.
  • Revision ID: james@jamesh.id.au-20080409030958-rzc9aplft44hpq35
Adjust my tests to pass with Ian's API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1028
1028
        # Introduced in 1.4
1029
1029
        # Invoked after the tip of a branch changes.
1030
1030
        # the api signature is
1031
 
        # (params) where params is a ChangeBranchTipParams object.
 
1031
        # (branch, params) where params is a ChangeBranchTipParams object.
1032
1032
        self['post_change_branch_tip'] = []
1033
1033
 
1034
1034
 
1418
1418
    def _make_branch_tip_hook_params(self, new_revision_id, new_revno=None):
1419
1419
        """Construct a Params object for passing to *branch_tip hooks."""
1420
1420
        if Branch.hooks['post_change_branch_tip']:
1421
 
            old_revno, old_revison_id = self.last_revision_info()
1422
 
            params = ChangeBranchTipParams(old_revision_id, new_revision_id,
1423
 
                old_revno, new_revno)
 
1421
            old_revno, old_revision_id = self.last_revision_info()
 
1422
            return ChangeBranchTipParams(old_revision_id, new_revision_id,
 
1423
                                         old_revno, new_revno)
1424
1424
        else:
1425
1425
            return None
1426
1426