~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-04 18:51:39 UTC
  • mfrom: (2961.1.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20071104185139-kaio3sneodg2kp71
Authentication ring implementation (read-only)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    workingtree,
30
30
    )
31
31
from bzrlib.tests.blackbox import ExternalBase
32
 
from bzrlib.tests import HardlinkFeature
33
32
 
34
33
 
35
34
class TestCheckout(ExternalBase):
138
137
        branch.bzrdir.destroy_workingtree()
139
138
        self.run_bzr('checkout -r 0')
140
139
        self.assertEqual('null:', tree.last_revision())
141
 
 
142
 
    def test_checkout_files_from(self):
143
 
        branch = _mod_branch.Branch.open('branch')
144
 
        self.run_bzr(['checkout', 'branch', 'branch2', '--files-from',
145
 
                      'branch'])
146
 
 
147
 
    def test_checkout_hardlink(self):
148
 
        self.requireFeature(HardlinkFeature)
149
 
        source = self.make_branch_and_tree('source')
150
 
        self.build_tree(['source/file1'])
151
 
        source.add('file1')
152
 
        source.commit('added file')
153
 
        self.run_bzr(['checkout', 'source', 'target', '--files-from', 'source',
154
 
                      '--hardlink'])
155
 
        source_stat = os.stat('source/file1')
156
 
        target_stat = os.stat('target/file1')
157
 
        self.assertEqual(source_stat, target_stat)