~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/diff.py

  • Committer: Martin
  • Date: 2010-04-16 13:15:40 UTC
  • mto: This revision was merged to the branch mainline in revision 5164.
  • Revision ID: gzlist@googlemail.com-20100416131540-4x8ovao9cwioyuzp
Don't try and warp files back to the 70s if no timestamp is available

Show diffs side-by-side

added added

removed removed

Lines of Context:
751
751
        try:
752
752
            mtime = tree.get_file_mtime(file_id)
753
753
        except errors.FileTimestampUnavailable:
754
 
            # GZ 2010-04-13: Zero is a bad 'unavailable' time as it predates
755
 
            #                the earliest allowable date on FAT filesystems
756
 
            mtime = 0
757
 
        os.utime(full_path, (mtime, mtime))
 
754
            pass
 
755
        else:
 
756
            os.utime(full_path, (mtime, mtime))
758
757
        if not allow_write:
759
758
            osutils.make_readonly(full_path)
760
759
        return full_path