~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Andrew Bennetts
  • Date: 2008-07-03 07:56:02 UTC
  • mto: This revision was merged to the branch mainline in revision 3520.
  • Revision ID: andrew.bennetts@canonical.com-20080703075602-8n055qsfkjijcz6i
Better tests for {pre,post}_change_branch_tip hooks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1156
1156
        self.old_revid = old_revid
1157
1157
        self.new_revid = new_revid
1158
1158
 
 
1159
    def __eq__(self, other):
 
1160
        return self.__dict__ == other.__dict__
 
1161
    
 
1162
    def __repr__(self):
 
1163
        return "<%s of %s from (%s, %s) to (%s, %s)>" % (
 
1164
            self.__class__.__name__, self.branch, 
 
1165
            self.old_revno, self.old_revid, self.new_revno, self.new_revid)
 
1166
 
1159
1167
 
1160
1168
class BzrBranchFormat4(BranchFormat):
1161
1169
    """Bzr branch format 4.