patman: Use reverse order for changelog
PATCH 1/2 patman: Use reverse order for changelog
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.
--- tools/patman/series.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
tools/patman/series.py +4 -4
@@ -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:
Signature · 1 line
1.7.10.4
PATCH 2/2 patman: Do not sort changlog items order
When writting the changelog of a series it is expect that this order is going to be respected.
The sorting can make it out of context of the order had a meaning for the reader so this patch remove the sort of items.
--- tools/patman/series.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/patman/series.py +1 -1
@@ -164,7 +164,7 @@ class Series(dict): if text not in out: out.append(text) if out: - out = ['Changes in v%d:' % change] + sorted(out) + out = ['Changes in v%d:' % change] + out if need_blank: out = [''] + out final += out
Signature · 1 line
1.7.10.4
PATCH 2/2 patman: Do not sort changlog items order
Dear Otavio Salvador,
Quoted 1 line · In message <[email protected]> you…
When writting the changelog of a series it is expect that this order
s/writting/writing/
s/it is expect/it is expected/
Quoted 1 line
is going to be respected.
What exactly do you mean here by "this order" ?
Quoted 2 lines
The sorting can make it out of context of the order had a meaning for the reader so this patch remove the sort of items.
I cannot really parse this, not even if I assume we should s/of/if/ here. What exactly do you mean?
Best regards,
Wolfgang Denk
Signature · 9 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I've been programming for (35-9=) 24 years myself, and I find the
best way to learn a new language is to *read* every example snippet I
can find, with a reference book close by. Eventually, the *rhythm* of
the language starts pounding in my head... and my fluency is close at
hand. That's how I learned Perl, and now I'm one of the drummers. :-)
-- Randal L. Schwartz in <[email protected]>PATCH 2/2 patman: Do not sort changlog items order
Quoted 11 lines · Wolfgang Denk
Dear Otavio Salvador,
Quoted 1 line · In message <[email protected]> you…
When writting the changelog of a series it is expect that this order
s/writting/writing/
s/it is expect/it is expected/
Quoted 1 line
is going to be respected.
Quoted 7 lines
What exactly do you mean here by "this order" ?
Quoted 2 lines
The sorting can make it out of context of the order had a meaning for the reader so this patch remove the sort of items.
I cannot really parse this, not even if I assume we should s/of/if/ here. What exactly do you mean?
Looks like Otavio meant to do the same as this patch from Ilya Yanok, which is now applied:
Regards,
Fabio Estevam
PATCH 2/2 patman: Do not sort changlog items order
Dear Fabio,
Quoted 6 lines · In message <CAOMZO5De1v6uTSQRBQcg3Fb=ve6EbOg+81RNHddh1AtgvkVvxg@mail.gmail.com>…
Quoted 3 lines
I cannot really parse this, not even if I assume we should s/of/if/ here. What exactly do you mean?
Looks like Otavio meant to do the same as this patch from Ilya Yanok, which is now applied:
This is my guess, too. But I'd like to be sure.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You have the capacity to learn from mistakes. You'll learn a lot today.
PATCH 2/2 patman: Do not sort changlog items order
Quoted 11 lines · Wolfgang Denk
Dear Fabio,
Quoted 6 lines · In message <CAOMZO5De1v6uTSQRBQcg3Fb=ve6EbOg+81RNHddh1AtgvkVvxg@mail.gmail.com>…
Quoted 3 lines
I cannot really parse this, not even if I assume we should s/of/if/ here. What exactly do you mean?
Looks like Otavio meant to do the same as this patch from Ilya Yanok, which is now applied:
This is my guess, too. But I'd like to be sure.
Yes; you're both right. Same fix but I didn't change the uniq handle as I think it is nice to have.
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: otavio at ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
PATCH 1/2 patman: Use reverse order for changelog
In reply to Otavio SalvadorQuoted 6 lines · Otavio Salvador
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 <[email protected]>
Quoted 34 lines
--- tools/patman/series.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)tools/patman/series.py +4
-5@@ -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: --1.7.10.4
PATCH 1/2 patman: Use reverse order for changelog
In reply to Otavio SalvadorQuoted 7 lines · Otavio Salvador
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 <[email protected]>Acked-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120927/68cb373c/attachment.pgp>