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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-05-07 11:50:39 UTC
  • mfrom: (6939.2.3 remove-dpush)
  • Revision ID: breezy.the.bot@gmail.com-20180507115039-s92x4484mhyi8m7k
Remove the dpush command, in favor of 'brz push --lossy'.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
413
413
        self.assertEqual(mapp, rev.mapping)
414
414
 
415
415
 
416
 
class WorkingTreeFileUpdateTests(tests.TestCaseWithTransport):
417
 
    """Tests for update_workingtree_fileids()."""
418
 
 
419
 
    def test_update_workingtree(self):
420
 
        wt = self.make_branch_and_tree('br1')
421
 
        self.build_tree_contents([('br1/bla', b'original contents\n')])
422
 
        wt.add('bla', 'bla-a')
423
 
        wt.commit('bla-a')
424
 
        root_id = wt.get_root_id()
425
 
        target = wt.controldir.sprout('br2').open_workingtree()
426
 
        target.unversion(['bla'])
427
 
        target.add('bla', 'bla-b')
428
 
        target.commit('bla-b')
429
 
        target_basis = target.basis_tree()
430
 
        target_basis.lock_read()
431
 
        self.addCleanup(target_basis.unlock)
432
 
        foreign.update_workingtree_fileids(wt, target_basis)
433
 
        wt.lock_read()
434
 
        try:
435
 
            self.assertEqual({'', "bla"}, set(wt.all_versioned_paths()))
436
 
        finally:
437
 
            wt.unlock()
438
 
 
439
 
 
440
416
class DummyForeignVcsTests(tests.TestCaseWithTransport):
441
417
    """Very basic test for DummyForeignVcs."""
442
418