/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: Parth Malwankar
  • Date: 2010-03-17 05:36:11 UTC
  • mfrom: (5091 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5092.
  • Revision ID: parth.malwankar@gmail.com-20100317053611-xpmn8gili6j191in
merged in trunk. fixed blackbox.test_upgrade to use backup.bzr.~N~ convention.

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