Logo Search packages:      
Sourcecode: rabbitvcs version File versions  Download package

def rabbitvcs::lib::vcs::svn::SVN::add_backwards (   self,
  path 
)

This will add the given path to version control, and any parent
directories that themselves require adding. It is essential that "path"
contains a WC somewhere in its hierarchy.

@param path: the path to add to version control
@type path: string  

Definition at line 1127 of file __init__.py.

01127                                  :
        """
        This will add the given path to version control, and any parent
        directories that themselves require adding. It is essential that "path"
        contains a WC somewhere in its hierarchy.
        
        @param path: the path to add to version control
        @type path: string  
        """
        head, tail = path,"" 
        tails = list()
        
        # We need to add backwards-recursively, since patch could create
        # files any level deep in the tree
        while not (self.is_working_copy(head) or self.is_versioned(head)):
            head, tail = os.path.split(head)
            tails.insert(0, tail)
            # If we get all the way to the FS root, something really dumb
            # has happened.
            assert head, "No longer in a working copy!"

        # Walk back up the tree...
        for tail in tails:
            head = os.path.join(head, tail)
            self.add(head, depth=pysvn.depth.empty)
    
    def copy(self, src, dest, revision=Revision("head")):


Generated by  Doxygen 1.6.0   Back to index