~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2010-04-08 04:34:03 UTC
  • mfrom: (5138 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5139.
  • Revision ID: robertc@robertcollins.net-20100408043403-56z0d07vdqrx7f3t
Update bugfix for 528114 to trunk.

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