Changeset 215 in tailor for vcpx/svn.py


Ignore:
Timestamp:
01/23/05 12:22:39 (8 years ago)
Author:
lele@…
Hash name:
20050123112239-97f81-a89af5a66647845809b79166174e603bcbfaa975
Message:

Do 'adds' and 'removes' in batches
Possibly use a single command to add/remove multiple paths, instead of
executing the target VCS command once for each path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/svn.py

    r213 r215  
    333333    ## SyncronizableTargetWorkingDir 
    334334 
    335     def _addEntry(self, root, entry): 
    336         """ 
    337         Add a new entry. 
     335    def _addEntries(self, root, entries): 
     336        """ 
     337        Add a sequence of entries. 
    338338        """ 
    339339 
    340340        c = SvnAdd(working_dir=root) 
    341         c(entry=entry) 
     341        c(entry=' '.join([e.name for e in entries])) 
    342342 
    343343    def _commit(self,root, date, author, remark, changelog=None, entries=None): 
     
    360360        c(logmessage=logmessage, entries=entries) 
    361361         
    362     def _removeEntry(self, root, entry): 
    363         """ 
    364         Remove an entry. 
     362    def _removeEntries(self, root, entries): 
     363        """ 
     364        Remove a sequence of entries. 
    365365        """ 
    366366 
    367367        c = SvnRemove(working_dir=root) 
    368         c(entry=entry) 
     368        c(entry=' '.join([e.name for e in entries])) 
    369369 
    370370    def _renameEntry(self, root, oldentry, newentry): 
Note: See TracChangeset for help on using the changeset viewer.