Converting output of 'svnlook tree' to canonical format
From: Carl Spalletta <cspalletta_at_gmail.com>
Date: 2006-02-06 19:08:39 CET
Excuse me for reinventing the wheel, but I couldn't find an existing script to
Hope this is useful to somebody.
Please give credit if you use the logic or code somewhere.
#!/usr/bin/perl -n
BEGIN
#count number of leading spaces
for($levels=0;$levels<=$#ltrs;$levels++)
return $levels;
#chomp,print,next if /^\S/;
$level = countlevels $_;
$l[$level-1]=$_;
$line = join "/",@l;
$line =~ s/\s//g;
$olevel=$level;
END
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.