~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-12-13 00:04:03 UTC
  • mfrom: (0.16.121 ls-shelf)
  • Revision ID: pqm@pqm.ubuntu.com-20081213000403-r1acnqhux25xhil1
shelf uses paths relative to current directory (abentley)

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')