[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] tla logs -scD
From: |
Mikhael Goikhman |
Subject: |
Re: [Gnu-arch-users] tla logs -scD |
Date: |
Thu, 26 Aug 2004 14:18:30 +0000 |
User-agent: |
Mutt/1.4.2.1i |
On 26 Aug 2004 21:32:23 +1000, Zenaan Harkness wrote:
>
> On Thu, Aug 26, 2004 at 10:56:20AM +0000, Mikhael Goikhman wrote:
> > On 26 Aug 2004 17:52:27 +1000, Zenaan Harkness wrote:
> > >
> > > Please forgive my ignorance, but is there a way to get the verbose
> > > version of tla logs -scD?
> > >
> > > This would be the summary of each changeset log entry, as well as the
> > > contents following each changeset entry, for each changeset in my tree.
> >
> > for rev in `tla logs`; do tla cat-log $rev; done
>
> I guess, to get rid of the Modified-files lists, I just add
> |grep -v \ \ \ \ .* and possibly grep -v any fields I don't want.
Using "grep" is ok if you need an aproximate output. This does not
guarantee the exact results though. You may use some arch library. For
example, what you want may be done like this with the current arch-perl:
use Arch::Tree;
my $tree = Arch::Tree->new; # assume the current dir
foreach my $log ($tree->get_logs) {
print "-" x 80, "\n";
print $log->standard_date, "\n";
print $log->summary, "\n\n";
print $log->body;
}
I am sure libraries in other languages exist and allow similar things.
Regards,
Mikhael.