~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Vincent Ladeuil
  • Date: 2012-03-14 10:17:12 UTC
  • mto: This revision was merged to the branch mainline in revision 6501.
  • Revision ID: v.ladeuil+lp@free.fr-20120314101712-8m19vlkis5yr0xtp
Yet more deprecated code removals

Show diffs side-by-side

added added

removed removed

Lines of Context:
3147
3147
    :ivar tag_updates: A dict with new tags, see BasicTags.merge_to
3148
3148
    """
3149
3149
 
3150
 
    @deprecated_method(deprecated_in((2, 3, 0)))
3151
 
    def __int__(self):
3152
 
        """Return the relative change in revno.
3153
 
 
3154
 
        :deprecated: Use `new_revno` and `old_revno` instead.
3155
 
        """
3156
 
        return self.new_revno - self.old_revno
3157
 
 
3158
3150
    def report(self, to_file):
3159
3151
        tag_conflicts = getattr(self, "tag_conflicts", None)
3160
3152
        tag_updates = getattr(self, "tag_updates", None)
3190
3182
        target, otherwise it will be None.
3191
3183
    """
3192
3184
 
3193
 
    @deprecated_method(deprecated_in((2, 3, 0)))
3194
 
    def __int__(self):
3195
 
        """Return the relative change in revno.
3196
 
 
3197
 
        :deprecated: Use `new_revno` and `old_revno` instead.
3198
 
        """
3199
 
        return self.new_revno - self.old_revno
3200
 
 
3201
3185
    def report(self, to_file):
3202
3186
        # TODO: This function gets passed a to_file, but then
3203
3187
        # ignores it and calls note() instead. This is also