~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Aaron Bentley
  • Date: 2010-05-10 11:34:20 UTC
  • mfrom: (5218 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5221.
  • Revision ID: aaron@aaronbentley.com-20100510113420-toh2d5yioobb5uq1
Merged bzr.dev into transform-commit-full.

Show diffs side-by-side

added added

removed removed

Lines of Context:
307
307
        tree = self.example_branch()
308
308
        self.build_tree_contents([('branch/har', 'foo')])
309
309
        tree.add('har')
310
 
        tree.commit('setup', timestamp=42)
 
310
        # Earliest allowable date on FAT32 filesystems is 1980-01-01
 
311
        tree.commit('setup', timestamp=315532800)
311
312
        self.run_bzr('export --per-file-timestamps t branch')
312
313
        har_st = os.stat('t/har')
313
 
        self.assertEquals(42, har_st.st_mtime)
 
314
        self.assertEquals(315532800, har_st.st_mtime)
314
315
 
 
316
    def test_export_directory(self):
 
317
        """Test --directory option"""
 
318
        self.example_branch()
 
319
        self.run_bzr(['export', '--directory=branch', 'latest'])
 
320
        self.assertEqual(['goodbye', 'hello'], sorted(os.listdir('latest')))
 
321
        self.check_file_contents('latest/goodbye', 'baz')