207
207
takes_args = ["patches*"]
209
209
def _apply_patch(self, wt, f):
210
211
from dulwich.patch import git_am_patch_split
211
213
(c, diff, version) = git_am_patch_split(f)
215
p = subprocess.Popen(["patch", "-p1"], stdin=subprocess.PIPE, cwd=wt.basedir)
216
222
def run(self, patches_list=None):
217
224
from bzrlib.workingtree import WorkingTree
221
228
tree, _ = WorkingTree.open_containing(".")
224
233
for patch in patches_list: