~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to patch.py

  • Committer: Aaron Bentley
  • Date: 2009-07-13 19:14:10 UTC
  • Revision ID: aaron@aaronbentley.com-20090713191410-dhqsqf3kuz5x2oyd
Tags: release-1.17.0
Update NEWS for release 1.17.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
import sys
18
18
import subprocess
19
19
 
 
20
from bzrlib.workingtree import WorkingTree
20
21
import bzrlib.add
21
22
 
22
23
from bzrlib.plugins.bzrtools.bzrtools import open_from_url
23
 
from errors import PatchFailed, PatchInvokeError
 
24
from errors import CommandError, PatchFailed, PatchInvokeError
24
25
 
25
26
def patch(tree, location, strip, quiet=False):
26
27
    """Apply a patch to a branch, using patch(1).  URLs may be used."""