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

  • Committer: Jelmer Vernooij
  • Date: 2019-01-13 17:32:22 UTC
  • mto: This revision was merged to the branch mainline in revision 7248.
  • Revision ID: jelmer@jelmer.uk-20190113173222-dteocq7209l6y0m6
Use tree timestamp when exporting.

This helps generate consistent hashes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        root = get_root_name(dest)
65
65
 
66
66
    if not per_file_timestamps:
67
 
        force_mtime = time.time()
 
67
        if getattr(tree, '_repository', None):
 
68
            force_mtime = tree._repository.get_revision(
 
69
                tree.get_revision_id()).timestamp
 
70
        else:
 
71
            force_mtime = time.time()
68
72
    else:
69
73
        force_mtime = None
70
74