~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Merge bzr.dev into cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
293
293
        tree.commit('more setup')
294
294
        out, err = self.run_bzr('export exported branch/subdir')
295
295
        self.assertEqual(['foo.txt'], os.listdir('exported'))
 
296
 
 
297
    def test_dir_export_per_file_timestamps(self):
 
298
        tree = self.example_branch()
 
299
        self.build_tree_contents([('branch/har', 'foo')])
 
300
        tree.add('har')
 
301
        tree.commit('setup', timestamp=42)
 
302
        self.run_bzr('export --per-file-timestamps t branch')
 
303
        har_st = os.stat('t/har')
 
304
        self.assertEquals(42, har_st.st_mtime)
 
305