Changeset 19 in tailor
- Timestamp:
- 06/22/04 00:02:48 (9 years ago)
- Hash name:
- 20040621220248-97f81-5455781361206ece5a9be9397f289213bfa892aa
- Location:
- vcpx
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
vcpx/cvs.py
r18 r19 291 291 self._addEntry(root, newentry) 292 292 293 def _initializeWorkingDir(self, root ):293 def _initializeWorkingDir(self, root, addentry=None): 294 294 """ 295 295 Add the given directory to an already existing CVS working tree. 296 296 """ 297 298 from os.path import split, walk 299 300 basedir,wdir = split(root) 301 c = CvsAdd(working_dir=basedir) 302 c(entry=wdir) 303 304 for dir, subdirs, files in walk(root): 305 if '.svn' in subdirs: 306 subdirs.remove('.svn') 307 if '_darcs' in subdirs: 308 subdirs.remove('_darcs') 309 c = CvsAdd(working_dir=dir) 310 for d in subdirs+files: 311 c(entry=d) 297 298 SyncronizableTargetWorkingDir._initializeWorkingDir(self, root, CvsAdd) -
vcpx/target.py
r16 r19 87 87 'Tailorization of %s@%s' % (repository, revision)) 88 88 89 def _initializeWorkingDir(self, root ):89 def _initializeWorkingDir(self, root, addentry=None): 90 90 """ 91 91 Assuming the `root` directory is a new working copy extracted … … 93 93 target repository. 94 94 """ 95 96 assert addentry, "Subclass should have specified something as addentry" 95 97 96 raise "%s should override this method" % self.__class__ 98 from os.path import split, walk 99 100 basedir,wdir = split(root) 101 c = addentry(working_dir=basedir) 102 c(entry=wdir) 103 104 for dir, subdirs, files in walk(root): 105 for excd in ['.svn', '_darcs', 'CVS']: 106 if excd in subdirs: 107 subdirs.remove(excd) 108 109 c = addentry(working_dir=dir) 110 for d in subdirs+files: 111 c(entry=d) 112 -
vcpx/darcs.py
r18 r19 144 144 self._createTag(root, 'Upstream revision %s' % revision) 145 145 146 def _initializeWorkingDir(self, root):147 """148 Execute `darcs initialize`.149 """150 151 c = DarcsInitialize(working_dir=root)152 c(output=True)153 154 146 def _createTag(self, root, tagname): 155 147 """ … … 181 173 182 174 return tagname 175 176 def _initializeWorkingDir(self, root): 177 """ 178 Execute `darcs initialize`. 179 """ 180 181 c = DarcsInitialize(working_dir=root) 182 c(output=True) 183 -
vcpx/svn.py
r18 r19 253 253 c(old=oldentry, new=newentry) 254 254 255 def _initializeWorkingDir(self, root ):255 def _initializeWorkingDir(self, root, addentry=None): 256 256 """ 257 257 Add the given directory to an already existing svn working tree. 258 258 """ 259 259 260 from os.path import split, walk 261 262 basedir,wdir = split(root) 263 c = SvnAdd(working_dir=basedir) 264 c(entry=wdir) 265 266 for dir, subdirs, files in walk(root): 267 if 'CVS' in subdirs: 268 subdirs.remove('CVS') 269 if '_darcs' in subdirs: 270 subdirs.remove('_darcs') 271 c = SvnAdd(working_dir=dir) 272 for d in subdirs+files: 273 c(entry=d) 274 260 SyncronizableTargetWorkingDir._initializeWorkingDir(self, root, SvnAdd)
Note: See TracChangeset
for help on using the changeset viewer.
