~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/export/zip_exporter.py

  • Committer: Jelmer Vernooij
  • Date: 2010-03-08 02:23:17 UTC
  • mto: This revision was merged to the branch mainline in revision 5086.
  • Revision ID: jelmer@samba.org-20100308022317-hmxztr4jz5danig8
Review comments from Rob.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
 
45
45
def zip_exporter(tree, dest, root, subdir, filtered=False,
46
 
                 use_tree_timestamp=False):
 
46
                 per_file_timestamps=False):
47
47
    """ Export this tree to a new zip file.
48
48
 
49
49
    `dest` will be created holding the contents of this tree; if it
63
63
 
64
64
            # zipfile.ZipFile switches all paths to forward
65
65
            # slashes anyway, so just stick with that.
66
 
            if use_tree_timestamp:
 
66
            if per_file_timestamps:
67
67
                mtime = tree.get_file_mtime(ie.file_id, dp)
68
68
            else:
69
69
                mtime = now