~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_shelve.py

  • Committer: Aaron Bentley
  • Date: 2008-12-12 06:09:44 UTC
  • mto: This revision was merged to the branch mainline in revision 3904.
  • Revision ID: aaron@aaronbentley.com-20081212060944-w84fbtu095dw7ndn
Use relative paths with shelve

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
 
17
import os
 
18
 
17
19
from bzrlib import shelf
18
20
from bzrlib.tests import TestCaseWithTransport
19
21
 
49
51
        out, err = self.run_bzr('shelve --list', retcode=1)
50
52
        self.assertEqual('', err)
51
53
        self.assertEqual('  2: Bar\n  1: Foo\n', out)
 
54
 
 
55
 
 
56
class TestShelveRelpath(TestCaseWithTransport):
 
57
 
 
58
    def test_shelve_in_subdir(self):
 
59
        tree = self.make_branch_and_tree('tree')
 
60
        self.build_tree(['tree/file', 'tree/dir/'])
 
61
        tree.add('file')
 
62
        os.chdir('tree/dir')
 
63
        self.run_bzr('shelve --all ../file')