* [sup-talk] [PATCH] sort labels in the dump
@ 2009-09-06 21:04 Michael Hamann
2009-09-07 11:03 ` Nicolas Pouillard
2009-09-09 14:38 ` William Morgan
0 siblings, 2 replies; 3+ messages in thread
From: Michael Hamann @ 2009-09-06 21:04 UTC (permalink / raw)
Sorting labels in the dump is useful when you e.g. want to keep track of
your dump using an incremental backup system that records diffs, with
this patch lines in the dump will only change when there is a real
change and no longer just because the random order of the labels
changes.
---
bin/sup-dump | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/bin/sup-dump b/bin/sup-dump
index 8b5bf07..7b33be5 100755
--- a/bin/sup-dump
+++ b/bin/sup-dump
@@ -26,5 +26,5 @@ Redwood::SourceManager.init
index.load
index.each_message :load_spam => true, :load_deleted => true, :load_killed => true do |m|
- puts "#{m.id} (#{m.labels.to_a * ' '})"
+ puts "#{m.id} (#{m.labels.to_a.sort_by { |l| l.to_s } * ' '})"
end
--
1.6.4.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* [sup-talk] [PATCH] sort labels in the dump
2009-09-06 21:04 [sup-talk] [PATCH] sort labels in the dump Michael Hamann
@ 2009-09-07 11:03 ` Nicolas Pouillard
2009-09-09 14:38 ` William Morgan
1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Pouillard @ 2009-09-07 11:03 UTC (permalink / raw)
Excerpts from Michael Hamann's message of Sun Sep 06 23:04:22 +0200 2009:
> Sorting labels in the dump is useful when you e.g. want to keep track of
> your dump using an incremental backup system that records diffs, with
> this patch lines in the dump will only change when there is a real
> change and no longer just because the random order of the labels
> changes.
+1 for this change.
--
Nicolas Pouillard
http://nicolaspouillard.fr
^ permalink raw reply [flat|nested] 3+ messages in thread
* [sup-talk] [PATCH] sort labels in the dump
2009-09-06 21:04 [sup-talk] [PATCH] sort labels in the dump Michael Hamann
2009-09-07 11:03 ` Nicolas Pouillard
@ 2009-09-09 14:38 ` William Morgan
1 sibling, 0 replies; 3+ messages in thread
From: William Morgan @ 2009-09-09 14:38 UTC (permalink / raw)
Applied to master. Thanks!
--
William <wmorgan-sup at masanjin.net>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-09-09 14:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-06 21:04 [sup-talk] [PATCH] sort labels in the dump Michael Hamann
2009-09-07 11:03 ` Nicolas Pouillard
2009-09-09 14:38 ` William Morgan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox