/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_commit.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-10-13 17:31:55 UTC
  • mfrom: (7397.4.9 remove-unused)
  • Revision ID: breezy.the.bot@gmail.com-20191013173155-yoiokny4mknxb3um
Remove Tree.has_id.

Merged from https://code.launchpad.net/~jelmer/brz/remove-unused/+merge/373320

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
            reporter.calls)
174
174
 
175
175
        tree = b.repository.revision_tree(b'rev2')
176
 
        self.assertFalse(tree.has_id(b'hello-id'))
 
176
        self.assertFalse(tree.has_filename('hello'))
177
177
 
178
178
    def test_partial_commit_move(self):
179
179
        """Test a partial commit where a file was renamed but not committed.
361
361
        wt.commit('removed hello', rev_id=b'rev2')
362
362
 
363
363
        tree = b.repository.revision_tree(b'rev2')
364
 
        self.assertFalse(tree.has_id(b'hello-id'))
 
364
        self.assertFalse(tree.has_filename('hello'))
365
365
 
366
366
    def test_committed_ancestry(self):
367
367
        """Test commit appends revisions to ancestry."""