Changeset 19 in tailor for vcpx/svn.py


Ignore:
Timestamp:
06/22/04 00:02:48 (9 years ago)
Author:
lele@…
Hash name:
20040621220248-97f81-5455781361206ece5a9be9397f289213bfa892aa
Message:

Factored out the _initializeWorkingDirectory method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/svn.py

    r18 r19  
    253253        c(old=oldentry, new=newentry) 
    254254 
    255     def _initializeWorkingDir(self, root): 
     255    def _initializeWorkingDir(self, root, addentry=None): 
    256256        """ 
    257257        Add the given directory to an already existing svn working tree. 
    258258        """ 
    259259         
    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.