13
|
1 #!/usr/bin/perl -w
|
|
2 use strict;
|
|
3 use config;
|
|
4
|
|
5 use IMPL::require {
|
|
6 HG => 'Benzin::SCC::Mercurial'
|
|
7 };
|
|
8
|
|
9 `rm -r /tmp/ImplabNet` if -d '/tmp/ImplabNet';
|
|
10
|
|
11 my $repo = HG->Clone(
|
|
12 'https://hg.implab.org/private/Pallada.PoiskAvia',
|
|
13 '/tmp/ImplabNet',
|
|
14 ['-r' => 10],
|
|
15 \%config::hgSettings
|
|
16 );
|
|
17
|
14
|
18 $repo->name('ImplabNet');
|
|
19 $repo->SaveConfig();
|
|
20
|
|
21 print "repo: ", $repo->hgrc->val('paths','default')," name: " ,$repo->name, "\n";
|
13
|
22
|
|
23 $repo->Pull('-u', '-r' => 20);
|
|
24
|
14
|
25 print "LISTING\n";
|
|
26 print "repo: ",$_->path, " " , $_->hgrc->val('paths','default','local'), "\n"
|
|
27 foreach @{HG->ListRepos('/tmp')};
|
|
28
|
|
29
|
13
|
30 print "done\n"; |