/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: Martin Pool
  • Date: 2011-06-19 02:24:39 UTC
  • mfrom: (5985 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6001.
  • Revision ID: mbp@canonical.com-20110619022439-u68683yb2bw302x0
resolve conflicts against trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
387
387
        har_st = os.stat('t/har')
388
388
        self.assertEquals(315532800, har_st.st_mtime)
389
389
 
 
390
    def test_dir_export_partial_tree_per_file_timestamps(self):
 
391
        tree = self.example_branch()
 
392
        self.build_tree(['branch/subdir/', 'branch/subdir/foo.txt'])
 
393
        tree.smart_add(['branch'])
 
394
        # Earliest allowable date on FAT32 filesystems is 1980-01-01
 
395
        tree.commit('setup', timestamp=315532800)
 
396
        self.run_bzr('export --per-file-timestamps tpart branch/subdir')
 
397
        foo_st = os.stat('tpart/foo.txt')
 
398
        self.assertEquals(315532800, foo_st.st_mtime)
 
399
 
390
400
    def test_export_directory(self):
391
401
        """Test --directory option"""
392
402
        self.example_branch()