[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Converting output of 'svnlook tree' to canonical format

From: Peter Samuelson <peter_at_p12n.org>
Date: 2006-02-06 22:55:32 CET

[Carl Spalletta]
> Excuse me for reinventing the wheel, but I couldn't find an existing
> script to convert output of 'svnlook tree' to the usual unix format.

Or, a bit shorter and more perly...

#!/usr/bin/perl -nl

s/^( *)//;
$level = length $1;
$name[$level] = $_;
print @name[0..$level];

Received on Mon Feb 6 23:52:21 2006

This is an archived mail posted to the Subversion Users mailing list.