~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_shelf_ui.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-13 03:16:26 UTC
  • mfrom: (4137.1.2 jamesw-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090313031626-cy59iwvd5csfcmez
(jamesw) Shelve now supports shelving changes to symlink targets.

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
                       'y')
165
165
        shelver.expect('Shelve 1 change(s)? [yNfq?]', 'y')
166
166
 
 
167
    def test_shelve_modify_target(self):
 
168
        tree = self.create_shelvable_tree()
 
169
        os.symlink('bar', 'tree/baz')
 
170
        tree.add('baz', 'baz-id')
 
171
        tree.commit("Add symlink")
 
172
        os.unlink('tree/baz')
 
173
        os.symlink('vax', 'tree/baz')
 
174
        shelver = ExpectShelver(tree, tree.basis_tree())
 
175
        shelver.expect('Shelve changing target of "baz" from "bar" to '
 
176
                '"vax"? [yNfq?]', 'y')
 
177
        shelver.expect('Shelve 1 change(s)? [yNfq?]', 'y')
 
178
        shelver.run()
 
179
        self.assertEqual('bar', os.readlink('tree/baz'))
 
180
 
167
181
    def test_shelve_finish(self):
168
182
        tree = self.create_shelvable_tree()
169
183
        shelver = ExpectShelver(tree, tree.basis_tree())