Changeset 289 in tailor


Ignore:
Timestamp:
05/10/05 00:52:31 (8 years ago)
Author:
lele@…
Hash name:
20050509225231-97f81-49ea3ca9c14b47e42f45df72a21ae5d8080270b9
Message:

Reworked targets _initializeWorkingDir() signature

Location:
vcpx
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • vcpx/target.py

    r283 r289  
    280280                     entries=[subdir]) 
    281281 
    282     def _initializeWorkingDir(self, root, repository, module, subdir, 
    283                               addentry=None): 
     282    def _initializeWorkingDir(self, root, repository, module, subdir): 
    284283        """ 
    285284        Assuming the `root` directory contains a working copy `module` 
     
    287286        to the target repository. 
    288287 
    289         This implementation first runs the given `addentry` 
    290         *SystemCommand* on the `root` directory, then it walks down 
    291         the `root` tree executing the same command on each entry 
    292         excepted the usual VC-specific control directories such as 
    293         ``.svn``, ``_darcs`` or ``CVS``. 
    294  
    295         If this does make sense, subclasses should just call this 
    296         method with the right `addentry` command. 
     288        This implementation recursively add every file in the subtree. 
     289        Subclasses should override this method doing whatever is 
     290        appropriate for the backend. 
    297291        """ 
    298292 
  • vcpx/darcs.py

    r284 r289  
    329329                rename(oldentry + '-TAILOR-HACKED-TEMP-NAME', oldentry) 
    330330 
    331     def _initializeWorkingDir(self, root, repository, module, subdir, addentry=None): 
     331    def _initializeWorkingDir(self, root, repository, module, subdir): 
    332332        """ 
    333333        Execute `darcs initialize`. 
  • vcpx/svn.py

    r259 r289  
    396396        c(old=shrepr(oldentry), new=repr(newentry)) 
    397397 
    398     def _initializeWorkingDir(self, root, repository, module, subdir, addentry=None): 
     398    def _initializeWorkingDir(self, root, repository, module, subdir): 
    399399        """ 
    400400        Add the given directory to an already existing svn working tree. 
     
    408408        SyncronizableTargetWorkingDir._initializeWorkingDir(self, root, 
    409409                                                            repository, module, 
    410                                                             subdir, SvnAdd) 
     410                                                            subdir) 
  • vcpx/monotone.py

    r275 r289  
    8989        c(old=shrepr(oldentry), new=repr(newentry)) 
    9090 
    91     def _initializeWorkingDir(self, root, repository, module, subdir, addentry=None): 
     91    def _initializeWorkingDir(self, root, repository, module, subdir): 
    9292        """ 
    9393        Execute `monotone setup`. 
  • vcpx/cdv.py

    r281 r289  
    9595                     entries=[subdir, '%s/...' % subdir]) 
    9696 
    97     def _initializeWorkingDir(self, root, repository, module, subdir, addentry=None): 
     97    def _initializeWorkingDir(self, root, repository, module, subdir): 
    9898        """ 
    9999        Execute `cdv init`. 
     
    115115        SyncronizableTargetWorkingDir._initializeWorkingDir(self, root, 
    116116                                                            repository, module, 
    117                                                             subdir, CdvAdd) 
     117                                                            subdir) 
Note: See TracChangeset for help on using the changeset viewer.