~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revisionspec.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-28 10:30:12 UTC
  • mfrom: (5741.1.12 move-interbranch-fetch2)
  • Revision ID: pqm@pqm.ubuntu.com-20110428103012-4mp8o2h32tluszv7
(jelmer) Make Branch.fetch() no longer take a fetch_spec (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
397
397
        """We can get any revision id in the repository"""
398
398
        # XXX: This may change in the future, but for now, it is true
399
399
        self.tree2.commit('alt third', rev_id='alt_r3')
400
 
        self.tree.branch.repository.fetch(self.tree2.branch.repository,
401
 
                                          revision_id='alt_r3')
 
400
        self.tree.branch.fetch(self.tree2.branch, 'alt_r3')
402
401
        self.assertInHistoryIs(None, 'alt_r3', 'revid:alt_r3')
403
402
 
404
403
    def test_unicode(self):
475
474
    def test_alt_no_parents(self):
476
475
        new_tree = self.make_branch_and_tree('new_tree')
477
476
        new_tree.commit('first', rev_id='new_r1')
478
 
        self.tree.branch.repository.fetch(new_tree.branch.repository,
479
 
                                          revision_id='new_r1')
 
477
        self.tree.branch.fetch(new_tree.branch, 'new_r1')
480
478
        self.assertInHistoryIs(0, 'null:', 'before:revid:new_r1')
481
479
 
482
480
    def test_as_revision_id(self):