18
18
from subprocess import Popen, PIPE
22
20
from bzrlib.workingtree import WorkingTree
25
25
def patch(tree, location, strip, quiet=False):
26
26
"""Apply a patch to a branch, using patch(1). URLs may be used."""
34
32
cmd = ['patch', '--directory', tree.basedir, '--strip', str(strip)]