17 $dirToFigure = $ARGV[0] if (scalar(@ARGV) > 0);
18 @currentDirInfo = `svk info $dirToFigure`;
21 foreach $line (@currentDirInfo) {
22 if ($line =~ m
%Depot Path
: /([^/]*)/.*%) {
25 if ($line =~ m
%Revision: ([0-9]*)%) {
28 if ($line =~ m
%Merged From
: (/.*), Rev
. ([0-9]*)%) {
29 if ( $upstreamRev == 0 || $2 > $upstreamRev ) {
30 push(@mirrorPaths,$1);
36 foreach $mirrorPath (@mirrorPaths) {
37 if ($foundMirror == 0) {
38 @mirrorDirInfo = `svk info /$depot/$mirrorPath`;
39 foreach $line (@mirrorDirInfo) {
40 if ($line =~ m
%Mirrored From
:%) {
46 @mirrorDirInfo = `svk log -r $upstreamRev /$depot/$mirrorPath`;
47 foreach $line ( @mirrorDirInfo ) {
48 if ($line =~ m/r[0-9].*orig r([0-9]*).*/) {
57 print $upstreamRev . ", r" . $currentRev ."@".`hostname | sed 's/.local//'`;