/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 bzrlib/tests/blackbox/test_update.py

  • Committer: Aaron Bentley
  • Date: 2006-10-18 02:26:35 UTC
  • mto: This revision was merged to the branch mainline in revision 2088.
  • Revision ID: aaron.bentley@utoronto.ca-20061018022635-3fd648bf19f8e56f
Support updating lightweight checkouts of readonly branches

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
 
198
198
        # The pending merges should still be there
199
199
        self.assertEqual(['o2'], checkout1.get_parent_ids()[1:])
 
200
 
 
201
    def test_readonly_lightweight_update(self):
 
202
        """Update a light checkout of a readonly branch"""
 
203
        tree = self.make_branch_and_tree('branch')
 
204
        readonly_branch = branch.Branch.open(self.get_readonly_url('branch'))
 
205
        checkout = readonly_branch.create_checkout('checkout', 
 
206
                                                   lightweight=True)
 
207
        tree.commit('empty commit')
 
208
        self.runbzr(['update', 'checkout'])