~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to patchsource.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:
1
1
import re
2
2
 
3
 
from bzrlib import (
4
 
    patches,
5
 
    workingtree,
6
 
    )
 
3
from bzrlib import patches
7
4
 
8
5
from bzrlib.plugins.bzrtools import errors
9
6
 
31
28
 
32
29
class BzrPatchSource(PatchSource):
33
30
    def __init__(self, revision=None, file_list=None):
34
 
        open_containing_paths = workingtree.WorkingTree.open_containing_paths
35
 
        self.tree, self.file_list = open_containing_paths(file_list)
 
31
        from bzrlib.builtins import tree_files
 
32
        self.tree, self.file_list = tree_files(file_list)
36
33
        self.base = self.tree.basedir
37
34
        self.revision = revision
38
35