Changeset 294 in tailor


Ignore:
Timestamp:
05/10/05 11:27:52 (8 years ago)
Author:
lele@…
Hash name:
20050510092752-97f81-5b9c796e8edfeec3b10d8a6dc48fad19b37e59a7
Message:

Reimplement _addSubtree() for darcs and svn using their recursive feature

Location:
vcpx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vcpx/darcs.py

    r291 r294  
    270270        c(names=' '.join([shrepr(n) for n in names])) 
    271271         
     272    def _addSubtree(self, root, subdir): 
     273        """ 
     274        Use the --recursive variant of `darcs add` to add a subtree. 
     275        """ 
     276         
     277        c = SystemCommand(working_dir=root, 
     278                          command="darcs add --case-ok --recursive" 
     279                          " --quiet %(entry)s") 
     280        c(entry=shrepr(subdir)) 
     281         
    272282    def _commit(self,root, date, author, remark, changelog=None, entries=None): 
    273283        """ 
  • vcpx/svn.py

    r292 r294  
    351351        c(names=' '.join([shrepr(n) for n in names])) 
    352352 
     353    def _addSubtree(self, root, subdir): 
     354        """ 
     355        Use the --recursive variant of `svn add` to add a subtree. 
     356        """ 
     357         
     358        c = SystemCommand(working_dir=root, 
     359                          command="svn add --quiet --no-auto-props " 
     360                                  "--recursive %(entry)s") 
     361        c(entry=shrepr(subdir)) 
     362         
    353363    def _commit(self,root, date, author, remark, changelog=None, entries=None): 
    354364        """ 
Note: See TracChangeset for help on using the changeset viewer.