Changeset 1203 in tailor for vcpx/repository/bzr.py
- Timestamp:
- 07/01/06 14:00:23 (7 years ago)
- Hash name:
- 20060701120023-d6905-5c72403bc1a2b22540203982d818d6aa61be6525
- File:
-
- 1 edited
-
vcpx/repository/bzr.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/repository/bzr.py
r1201 r1203 25 25 from bzrlib.add import smart_add_tree 26 26 from bzrlib import errors 27 from bzrlib import IGNORE_FILENAME 27 28 28 29 from vcpx.repository import Repository … … 50 51 # TODO: check if there is a "repository" in the configuration, 51 52 # and use it as a bzr repository 53 self.ignored = [] 52 54 self._working_tree = None 53 55 try: 54 56 bzrdir = BzrDir.open(self.basedir) 55 self._working_tree = bzrdir.open_workingtree() 57 wt = self._working_tree = bzrdir.open_workingtree() 58 59 # read .bzrignore for _addSubtree() 60 if wt.has_filename(IGNORE_FILENAME): 61 f = wt.get_file_byname(IGNORE_FILENAME) 62 self.ignored.extend([ line.rstrip("\n\r") for line in f.readlines() ]) 56 63 except errors.NotBranchError, errors.NoWorkingTree: 57 64 pass … … 164 171 added, ignored = smart_add_tree(self._working_tree, [subdir], recurse=True) 165 172 173 from vcpx.dualwd import IGNORED_METADIRS 174 175 for meta in IGNORED_METADIRS + self.ignored: 176 if ignored.has_key(meta): 177 del ignored[meta] 178 166 179 if len(ignored): 167 180 f = [] … … 255 268 """ 256 269 from os.path import join, split 257 from bzrlib import IGNORE_FILENAME258 270 259 271 if self._working_tree is None: 260 ignored = []272 ignored = self.ignored 261 273 262 274 # Omit our own log...
Note: See TracChangeset
for help on using the changeset viewer.
