]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
patman: Use reverse order for changelog
authorOtavio Salvador <otavio@ossystems.com.br>
Sat, 18 Aug 2012 07:46:04 +0000 (07:46 +0000)
committerTom Rini <trini@ti.com>
Wed, 26 Sep 2012 18:08:32 +0000 (11:08 -0700)
Specially when many revisions are need for a patchset, the most
interesting information is about the last set of changes so we output
the changelog in reverse order to easy identification of most recent
change set.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Simon Glass <sjg@chromium.org>
tools/patman/series.py

index 27528bf21dd73580a10d1bb1ca52155fbdb0f6a3..ce36b230a36a4d6031162a97439e3f6e23d0dd44 100644 (file)
@@ -145,18 +145,18 @@ class Series(dict):
         Return:
             The change log as a list of strings, one per line
 
+            Changes in v2:
+            - Jog the dial back closer to the widget
+
             Changes in v1:
             - Fix the widget
             - Jog the dial
 
-            Changes in v2:
-            - Jog the dial back closer to the widget
-
             etc.
         """
         final = []
         need_blank = False
-        for change in sorted(self.changes):
+        for change in sorted(self.changes, reverse=True):
             out = []
             for this_commit, text in self.changes[change]:
                 if commit and this_commit != commit: