Bug 188579 - Add option to purge log files
Summary: Add option to purge log files
Status: RESOLVED FIXED
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-01 01:39 UTC by Raphael Kubo da Costa
Modified: 2009-05-10 01:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Removes unused log directories (i.e. everything not under log/latest) (4.30 KB, patch)
2009-04-21 04:15 UTC, Michael Pyne
Details

Note You need to log in before you can comment on or make changes to this bug.
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