7025
7025
takes_args = ['filename?']
7026
7026
takes_options = [Option('strip', type=int, short_name='p',
7027
7027
help=("Strip the smallest prefix containing num "
7029
7029
Option('silent', help='Suppress chatter.')]
7031
7031
def run(self, filename=None, strip=None, silent=False):
7032
7032
from .patch import patch_tree
7034
7033
wt = WorkingTree.open_containing('.')[0]
7042
7041
patches = [my_file.read()]
7043
7042
return patch_tree(wt, patches, strip, quiet=is_quiet(), out=self.outf)