Changeset 1027 in tailor for vcpx/bzr.py


Ignore:
Timestamp:
12/06/05 09:54:19 (7 years ago)
Author:
duchier@…
Hash name:
20051206085419-8b4aa-6ae91b0a494aebb4a4ad9a9d7cf23c041baab30c
Message:

Use bzr.dev new smart_add_tree() in place of smart_add_branch()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/bzr.py

    r1022 r1027  
    136136        if len(new_entries) == 0: 
    137137            return 
     138 
     139        from bzrlib.add import smart_add_tree 
     140        import os.path 
    138141        self.log.info('Adding %s...', ', '.join(new_entries)) 
    139         self._b.add(new_entries) 
     142        smart_add_tree(self._b.working_tree(),[os.path.join(self.basedir,e) for e in new_entries],recurse=False) 
    140143 
    141144    def _addSubtree(self, subdir): 
     
    148151 
    149152        from os.path import join 
    150         from bzrlib.add import smart_add_branch 
     153        from bzrlib.add import smart_add_tree 
    151154 
    152155        self.log.info('Recursively adding directory "%s"...', subdir) 
    153         smart_add_branch(self._b, [join(self.basedir, subdir)], recurse=True) 
     156        smart_add_tree(self._b.working_tree(), [join(self.basedir, subdir)], recurse=True) 
    154157 
    155158    def _commit(self, date, author, patchname, changelog=None, entries=None): 
Note: See TracChangeset for help on using the changeset viewer.