/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/patch.py

  • Committer: Jelmer Vernooij
  • Date: 2019-05-11 09:50:14 UTC
  • mto: This revision was merged to the branch mainline in revision 7309.
  • Revision ID: jelmer@jelmer.uk-20190511095014-xz13v9aq6ekhpbfc
Add docstring.

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
 
119
119
def patch_tree(tree, patches, strip=0, reverse=False, dry_run=False,
120
120
               quiet=False, out=None):
 
121
    """Apply a patch to a tree.
 
122
 
 
123
    Args:
 
124
      tree: A MutableTree object
 
125
      patches: list of patches as bytes
 
126
      strip: Strip X segments of paths
 
127
      reverse: Apply reversal of patch
 
128
      dry_run: Dry run
 
129
    """
121
130
    return run_patch(tree.basedir, patches, strip, reverse, dry_run,
122
131
                     quiet, out=out)
123
132