~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/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:
30
30
    push,
31
31
    repository,
32
32
    revision,
 
33
    symbol_versioning,
33
34
    tests,
34
35
    transport,
35
36
    )
61
62
        self.assertEqual(result.old_revid, 'M1')
62
63
        self.assertEqual(result.new_revid, 'P2')
63
64
        # and it can be treated as an integer for compatibility
64
 
        self.assertEqual(int(result), 0)
 
65
        self.assertEqual(self.applyDeprecated(
 
66
            symbol_versioning.deprecated_in((2, 3, 0)),
 
67
            result.__int__),
 
68
            0)
65
69
 
66
70
    def test_push_merged_indirect(self):
67
71
        # it should be possible to do a push from one branch into another