view tests/test_scc.pl @ 13:a9ce584a7f3b

test for mercurial repositories
author sergey
date Mon, 19 May 2014 04:34:28 +0400
parents
children d997ff96acf1
line wrap: on
line source

#!/usr/bin/perl -w
use strict;
use config;

use IMPL::require {
	HG => 'Benzin::SCC::Mercurial'
};

`rm -r /tmp/ImplabNet` if -d '/tmp/ImplabNet';

my $repo = HG->Clone(
	'https://hg.implab.org/private/Pallada.PoiskAvia',
	'/tmp/ImplabNet',
	['-r' => 10],
	\%config::hgSettings
);

foreach my $info (@{$repo->Income() || []}) {
	print "$info->{number} : $info->{hash}\n";
}

$repo->Pull('-u', '-r' => 20);

print "done\n";