/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2010-03-25 12:32:24 UTC
  • mfrom: (5115 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5116.
  • Revision ID: john@arbash-meinel.com-20100325123224-km80yrpbn7cm0jcr
Merge bzr.dev to be ready for NEWS

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