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

def rabbitvcs::lib::vcs::svn::SVN::propset (   self,
  path,
  prop_name,
  prop_value,
  overwrite = False,
  recurse = False 
)

Adds an svn property to a path.  If the item is unversioned,
add a recursive property to the parent path

@type   path: string
@param  path: A file or directory path.

@type   prop_name: string
@param  prop_name: An svn property name.

@type   prop_value: string
@param  prop_value: An svn property value/pattern.

@type   recurse: boolean 
@param  recurse: If True, the property will be applied to all
subdirectories as well.

Definition at line 756 of file __init__.py.

00756                                                                                   :
        """
        Adds an svn property to a path.  If the item is unversioned,
        add a recursive property to the parent path
        
        @type   path: string
        @param  path: A file or directory path.
        
        @type   prop_name: string
        @param  prop_name: An svn property name.
        
        @type   prop_value: string
        @param  prop_value: An svn property value/pattern.
        
        @type   recurse: boolean 
        @param  recurse: If True, the property will be applied to all
                subdirectories as well.
        
        """

        path = self.get_versioned_path(path)
        if overwrite:
            props = prop_value
        else:
            props = self.propget(path, prop_name)
            props = "%s%s" % (props, prop_value)
        
        try:
            self.client.propset(
                prop_name, 
                props, 
                path, 
                recurse=recurse
            )
            return True
        except pysvn.ClientError, e:
            log.exception("pysvn.ClientError exception in svn.py propset() for %s" % path)
        except TypeError, e:
            log.exception("TypeError exception in svn.py propset() %s" % path)
            
        return False
        
    def proplist(self, path, rev=None):


Generated by  Doxygen 1.6.0   Back to index