public function purgeRollbackPoints()
	{
		$tagList        = $this->call('tag');
		$tags           = explode("\n", $tagList);
		$rollbackPoints = array();

		foreach ($tags as $tag)
		{
			if (strstr($tag, 'cmsrollbackpoint-') !== false)
			{
				$rollbackPoints[] = $tag;
			}
		}

		if (count($rollbackPoints) > 1)
		{
			for ($i=0; $i < (count($rollbackPoints) - 1); $i++)
			{
				$this->call('tag', array('-d', $rollbackPoints[$i]));
			}
		}
	}
public function purgeRollbackPoints()
	{
		$tagList        = $this->call('tag');
		$tags           = explode("\n", $tagList);
		$rollbackPoints = array();

		foreach ($tags as $tag)
		{
			if (strstr($tag, 'cmsrollbackpoint-') !== false)
			{
				$rollbackPoints[] = $tag;
			}
		}

		if (count($rollbackPoints) > 1)
		{
			for ($i=0; $i < (count($rollbackPoints) - 1); $i++)
			{
				$this->call('tag', array('-d', $rollbackPoints[$i]));
			}
		}
	}
public function purgeRollbackPoints ( ) { $ tagList = $ this -> call ( 'tag' ) ; $ tags = explode ( "\n" , $ tagList ) ; $ rollbackPoints = array ( ) ; foreach ( $ tags as $ tag ) { if ( strstr ( $ tag , 'cmsrollbackpoint-' ) !== false ) { $ rollbackPoints [ ] = $ tag ; } } if ( count ( $ rollbackPoints ) > 1 ) { for ( $ i = 0 ; $ i < ( count ( $ rollbackPoints ) - 1 ) ; $ i ++ ) { $ this -> call ( 'tag' , array ( '-d' , $ rollbackPoints [ $ i ] ) ) ; } } }
Purge rollback points except for the latest

@return  void
Purge rollback points except for the latest