/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/export/zip_exporter.py

  • Committer: Jelmer Vernooij
  • Date: 2011-03-13 21:30:33 UTC
  • mto: This revision was merged to the branch mainline in revision 5724.
  • Revision ID: jelmer@samba.org-20110313213033-ud9t11mm8e3idtti
Add test for per-file-timestamp zipfiles.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
_DIR_ATTR = stat.S_IFDIR | ZIP_DIRECTORY_BIT | DIR_PERMISSIONS
45
45
 
46
46
 
47
 
def zip_exporter(tree, dest, root, subdir, filtered=False, force_mtime=None):
 
47
def zip_exporter(tree, dest, root, subdir=None, filtered=False, force_mtime=None):
48
48
    """ Export this tree to a new zip file.
49
49
 
50
50
    `dest` will be created holding the contents of this tree; if it
55
55
    if dest == "-":
56
56
        dest = sys.stdout
57
57
    zipf = zipfile.ZipFile(dest, "w", compression)
58
 
 
59
58
    try:
60
59
        for dp, ie in _export_iter_entries(tree, subdir):
61
60
            file_id = ie.file_id