~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_interbranch/test_push.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-09-09 04:32:41 UTC
  • mfrom: (5414.1.1 deprecation)
  • Revision ID: pqm@pqm.ubuntu.com-20100909043241-7ya6s3ghs5c1ijxk
(mbp) Deprecate casting PushResult and PullResult to int to get the relative
 revno change (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    errors,
34
34
    push,
35
35
    repository,
 
36
    symbol_versioning,
36
37
    tests,
37
38
    )
38
39
from bzrlib.branch import Branch
68
69
        self.assertEqual(result.old_revid, 'M1')
69
70
        self.assertEqual(result.new_revid, 'P2')
70
71
        # and it can be treated as an integer for compatibility
71
 
        self.assertEqual(int(result), 0)
 
72
        self.assertEqual(self.applyDeprecated(
 
73
            symbol_versioning.deprecated_in((2, 3, 0)),
 
74
            result.__int__),
 
75
            0)
72
76
 
73
77
    def test_push_merged_indirect(self):
74
78
        # it should be possible to do a push from one branch into another