Bug 188579

Summary: Add option to purge log files
Product: [Developer tools] kdesrc-build Reporter: Raphael Kubo da Costa <rakuco>
Component: generalAssignee: Michael Pyne <mpyne>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Removes unused log directories (i.e. everything not under log/latest)

Description Raphael Kubo da Costa 2009-04-01 01:39:31 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

There could be an option in kdesvn-build to clean the logs directory (either completely or leaving the last logs for each module).

It could be a command-line option or something to be configured in .kdesvn-buildrc.
Comment 1 Michael Pyne 2009-04-21 04:15:34 UTC
Created attachment 32970 [details]
Removes unused log directories (i.e. everything not under log/latest)

Or we could just remove log directories that are not the most up-to-date (as determined by the log/latest directory).  This patch implements that.

Please please please test using --pretend first to make sure the directories it wants to delete sound sane.

As long as this works for people besides myself I'll probably make this behavior the default without adding an option for it.
Comment 2 Michael Pyne 2009-05-07 04:32:46 UTC
SVN commit 964634 by mpyne:

Add ability for kdesvn-build to purge old log directories.

Based on user feedback, this does not occur by default.  Instead, you must either
set the purge-old-logs option in your kdesvn-buildrc to 'true', or pass
--purge-old-logs=true on the command line when running kdesvn-build to do a one-off
pass.

If you just want to clear your old log dirs without performing any other actions
something like

kdesvn-build --purge-old-logs=true --no-svn --no-build --no-install kdelibs

should work (you can replace kdelibs with any module in your kdesvn-buildrc, it's just
a placeholder).

Make sure to run with --pretend first just to make sure the numbers of log directories
to be deleted make sense.

BUG:188579


 M  +94 -5     kdesvn-build  


WebSVN link: http://websvn.kde.org/?view=rev&revision=964634
Comment 3 Raphael Kubo da Costa 2009-05-10 01:22:42 UTC
SVN commit 965853 by rkcosta:

Document purge-old-logs in kdesvn-buildrc-sample.

CCBUG: 188579
CCMAIL: mpyne@purinchu.net


 M  +4 -0      kdesvn-buildrc-sample  


WebSVN link: http://websvn.kde.org/?view=rev&revision=965853