Changeset 233 in tailor for vcpx/svn.py


Ignore:
Timestamp:
03/22/05 18:31:53 (8 years ago)
Author:
lele@…
Hash name:
20050322173153-97f81-ec7b53123e3a9635cdea9d363c2920fd8db31d20
Message:

Quote any filename fed to underlying shell process

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/svn.py

    r215 r233  
    1212__docformat__ = 'reStructuredText' 
    1313 
    14 from shwrap import SystemCommand 
     14from shwrap import SystemCommand, shrepr 
    1515from source import UpdatableSourceWorkingDir, \ 
    1616     ChangesetApplicationFailure, GetUpstreamChangesetsFailure 
     
    310310            svnco = SvnCheckout(working_dir=basedir) 
    311311            svnco(output=True, repository=repository, module=module, 
    312                   wc=subdir, revision=revision) 
     312                  wc=shrepr(subdir), revision=revision) 
    313313            if svnco.exit_status: 
    314314                raise TargetInitializationFailure( 
     
    339339 
    340340        c = SvnAdd(working_dir=root) 
    341         c(entry=' '.join([e.name for e in entries])) 
     341        c(entry=' '.join([shrepr(e.name) for e in entries])) 
    342342 
    343343    def _commit(self,root, date, author, remark, changelog=None, entries=None): 
     
    354354             
    355355        if entries: 
    356             entries = ' '.join(entries) 
     356            entries = ' '.join([shrepr(e) for e in entries]) 
    357357        else: 
    358358            entries = '.' 
     
    366366 
    367367        c = SvnRemove(working_dir=root) 
    368         c(entry=' '.join([e.name for e in entries])) 
     368        c(entry=' '.join([shrepr(e.name) for e in entries])) 
    369369 
    370370    def _renameEntry(self, root, oldentry, newentry): 
     
    374374 
    375375        c = SvnMv(working_dir=root) 
    376         c(old=oldentry, new=newentry) 
     376        c(old=shrepr(oldentry), new=repr(newentry)) 
    377377 
    378378    def _initializeWorkingDir(self, root, repository, module, subdir, addentry=None): 
Note: See TracChangeset for help on using the changeset viewer.