def increment_version(version, increment_type):
    incremented_version = version
    
    if version == None:
        incremented_version = '1.0.0'
        logger.info('No version number found.  Setting version to ' + incremented_version);
    else:
        version_parts = version.split('.')
        if len(version_parts) == 3:
            major = int(version_parts[0])
            minor = int(version_parts[1])
            revision = int(version_parts[2])
            
            if increment_type == 'major':
                major = major + 1
            elif increment_type == 'minor':
                minor = minor + 1
            elif increment_type == 'revision':      
                revision = revision + 1
                
            incremented_version = str(major) + '.' + str(minor) + '.' + str(revision)
            logger.info('Incrementing CKAN dataset version from ' + version + ' to ' + incremented_version);
    return incremented_version
dot(u, v) --> float
dataset/ETHPy150Open opencolorado/OpenColorado-Tools-and-Utilities/Scripts/ArcGIS/10.0/Python/PublishOpenDataset.py/increment_version--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/pymel/util/arrays.py/dot