Changeset 917 in tailor


Ignore:
Timestamp:
10/16/05 18:50:57 (8 years ago)
Author:
lele@…
Hash name:
20051016165057-97f81-e2b4b2b182da9d0e7fda1af2fcac3eb5eb49178a
Message:

Implement a BazaarNG specific _addSubtree()
This really makes the difference importing huge trees.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/bzr.py

    r916 r917  
    110110        self._b.add(new_entries) 
    111111 
     112    def _addSubtree(self, subdir): 
     113        """ 
     114        Add a whole subtree. 
     115 
     116        Use smart_add_branch() to add a whole new subtree to the 
     117        repository. 
     118        """ 
     119 
     120        from os.path import join 
     121        from bzrlib.add import smart_add_branch 
     122 
     123        smart_add_branch(self._b, [join(self.basedir, subdir)], recurse=True) 
     124 
    112125    def _commit(self, date, author, patchname, changelog=None, entries=None): 
    113126        from time import mktime 
Note: See TracChangeset for help on using the changeset viewer.