/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_remote.py

  • Committer: Martin
  • Date: 2017-11-12 13:53:51 UTC
  • mto: This revision was merged to the branch mainline in revision 6810.
  • Revision ID: gzlist@googlemail.com-20171112135351-uyr1ncw7visg62c2
Apply 2to3 ws_comma fixer

Show diffs side-by-side

added added

removed removed

Lines of Context:
2363
2363
        result = repo.gather_stats(None)
2364
2364
        self.assertEqual(
2365
2365
            [('call_expecting_body', 'Repository.gather_stats',
2366
 
             ('quack/','','no'))],
 
2366
             ('quack/', '', 'no'))],
2367
2367
            client._calls)
2368
2368
        self.assertEqual({'revisions': 2, 'size': 18}, result)
2369
2369
 
2900
2900
        # Then it should ask the fallback, using revno/revid from the
2901
2901
        # history-incomplete response as the known revno/revid.
2902
2902
        client.add_expected_call(
2903
 
            'Repository.get_rev_id_for_revno',('fallback/', 1, (2, 'rev-two')),
 
2903
            'Repository.get_rev_id_for_revno', ('fallback/', 1, (2, 'rev-two')),
2904
2904
            'success', ('ok', 'rev-one'))
2905
2905
        result = repo.get_rev_id_for_revno(1, (42, 'rev-foo'))
2906
2906
        self.assertEqual((True, 'rev-one'), result)
3972
3972
        tip = stacked.last_revision()
3973
3973
        stacked.repository._ensure_real()
3974
3974
        graph = stacked.repository.get_graph()
3975
 
        revs = [r for (r,ps) in graph.iter_ancestry([tip])
 
3975
        revs = [r for (r, ps) in graph.iter_ancestry([tip])
3976
3976
                if r != NULL_REVISION]
3977
3977
        revs.reverse()
3978
3978
        search = vf_search.PendingAncestryResult([tip], stacked.repository)