Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
checking if the branch exists, if so, override it

        def svn_remove(url):
    """checking if the branch exists, if so, override it"""
    if check_command('svn ls %s' % url):    
        # removing it
        if not check_command('svn rm %s -m "removing branch"' \
                               % url):
            raise ReleaseError("could not remove the existing branch")
        else:
            print 'branch was existing, removed'
        


src/i/w/iw.releaser-0.4.1/iw/releaser/project.py   iw.releaser(Download)
 
    # if exists, let's drop it
    base.svn_remove(release)
 
    # now let's create the branch

src/i/w/iw.releaser-0.4.1/iw/releaser/packet.py   iw.releaser(Download)
 
    # checking if the branch exists, if so, override it
    base.svn_remove(branch)
    base.svn_copy(trunk, branch, 'branch for %s release' % version)
 
 
    # let's tag
    base.svn_remove(tag)
    base.svn_copy(branch, tag, 'tag for %s release' % version)