/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/git/pristine_tar.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-11 04:08:32 UTC
  • mto: (7143.16.20 even-more-cleanups)
  • mto: This revision was merged to the branch mainline in revision 7175.
  • Revision ID: jelmer@jelmer.uk-20181111040832-nsljjynzzwmznf3h
Run autopep8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
regenerate tarballs for its own releases.
36
36
"""
37
37
 
 
38
 
38
39
def revision_pristine_tar_data(rev):
39
40
    """Export the pristine tar data from a revision."""
40
41
    if 'deb-pristine-delta' in rev.properties:
79
80
 
80
81
 
81
82
def store_git_pristine_tar_data(repo, filename, delta, gitid,
82
 
        message=None, **kwargs):
 
83
                                message=None, **kwargs):
83
84
    """Add pristine tar data to a Git repository.
84
85
 
85
86
    :param repo: Git repository to add data to
106
107
    if message is None:
107
108
        message = b'pristine-tar data for %s' % filename
108
109
    return repo.do_commit(ref=b'refs/heads/pristine-tar', tree=tree.id,
109
 
        message=message, **kwargs)
 
110
                          message=message, **kwargs)