~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.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:
29
29
    bzrdir,
30
30
    config,
31
31
    errors,
 
32
    symbol_versioning,
32
33
    tests,
33
34
    trace,
34
35
    transport,
622
623
        # this usage of results is not recommended for new code (because it
623
624
        # doesn't describe very well what happened), but for api stability
624
625
        # it's still supported
625
 
        a = "%d revisions pulled" % r
626
 
        self.assertEqual(a, "10 revisions pulled")
 
626
        self.assertEqual(self.applyDeprecated(
 
627
            symbol_versioning.deprecated_in((2, 3, 0)),
 
628
            r.__int__),
 
629
            10)
627
630
 
628
631
    def test_report_changed(self):
629
632
        r = _mod_branch.PullResult()