Pastoid

Get all trunk and tagged revs

The page you are looking at now is at this URL: http://pastoid.com/bxe

This paste was last updated on September 18, 2009 at 10:07 pm.

Pasted Coderaw

#!/usr/bin/php
 
<?php
 
$list = shell_exec('svn ls http://svn.habariproject.org/habari-extras/plugins');
 
$list = explode("\n", $list);
 
foreach($list as $plugin) {
	$ls = shell_exec('svn ls --verbose http://svn.habariproject.org/habari-extras/plugins/' . $plugin . 'trunk');
 
	preg_match('%^\s*(\d+)%', $ls, $matches);
	$rev = intval($matches[1]);
 
	echo "$rev $plugin trunk\n";
 
	$list2 = shell_exec('svn ls http://svn.habariproject.org/habari-extras/plugins/' . $plugin . 'tags');
	$list2 = explode("\n", $list2);
 
	foreach($list2 as $tag) {
		if($tag == '') continue;
		$ls = shell_exec('svn ls --verbose http://svn.habariproject.org/habari-extras/plugins/' . $plugin . 'tags/' . $tag);
 
		preg_match('%^\s*(\d+)%', $ls, $matches);
		$rev = intval($matches[1]);
 
		echo "$rev $plugin tag $tag\n";
	}
}
 
?>

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 5
drunkenmonkey.org 1
Is this paste spam?
<Hide