~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to patch.py

  • Committer: Aaron Bentley
  • Date: 2011-09-25 01:18:55 UTC
  • mfrom: (776.2.1 unused-imports)
  • Revision ID: aaron@aaronbentley.com-20110925011855-3dil4ijgluvzq7q5
Remove unused imports, fix the importing of two error classes. (jelmer)

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
21
20
import bzrlib.add
22
21
 
23
22
from bzrlib.plugins.bzrtools.bzrtools import open_from_url
24
 
from errors import CommandError, PatchFailed, PatchInvokeError
 
23
from errors import PatchFailed, PatchInvokeError
25
24
 
26
25
def patch(tree, location, strip, quiet=False):
27
26
    """Apply a patch to a branch, using patch(1).  URLs may be used."""