Miscellaneous jar improvements

Martin Buchholz martinrb at google.com
Thu Sep 10 15:19:36 PDT 2009


Thanks, Andrew(s)

I can't say that I'm really happy with
mercurial's templating mini-language,
but here's my latest good-enough version,
incorporating your suggestion.

[alias]
logv = log --template='changeset:   {rev}:{node|short} {branches}
{tags} {parents}\nuser:        {author}\ndate:
{date|isodate}\n{desc}\n\n'


Martin

On Thu, Sep 10, 2009 at 13:17, Andrew John
Hughes<gnu_andrew at member.fsf.org> wrote:
> 2009/9/10 Martin Buchholz <martinrb at google.com>:
>> It was bugging me that hg log only shows the first line of the description,
>> when the full description is usually what you want.
>> Anyways, I just added the hg alias below in my .hgrc,
>> and seems to make me happier.
>>
>> [alias]
>> logv = log --template='changeset:
>> {rev}:{node|short}\n{branches}{tags}{parents}user:
>> {author}\ndate:        {date|date}\n{desc}\n\n'
>>
>
> Thanks Martin.  That produces some nice output.  I moved the \n from
> before {branches} to after {parents} and add spaces between each of
> branches, tags and parents, so that you get:
>
> changeset:5:a16ad9963666  jdk6-b02
> user:ohair
>
> rather than
>
> changeset:5:a16ad9963666
> jdk6-b02user:ohair
>
>> Martin
>>
>> On Thu, Sep 10, 2009 at 10:39, Andrew Haley<aph at redhat.com> wrote:
>>> Andrew John Hughes wrote:
>>>> 2009/9/10 Andrew Haley <aph at redhat.com>:
>>>>> Andrew John Hughes wrote:
>>>>>> 2009/9/10 Andrew Haley <aph at redhat.com>:
>>>>>>> Martin Buchholz wrote:
>>>>>>>> On Thu, Sep 10, 2009 at 09:57, Andrew Haley<aph at redhat.com> wrote:
>>>>>>>>> Martin Buchholz wrote:
>>>>>>>>>> changeset:   1283:ff32c270102a
>>>>>>>>>> user:        martin
>>>>>>>>>> date:        Mon Jun 22 21:07:20 2009 -0700
>>>>>>>>>> summary:     6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
>>>>>>> Weird, I can't find that changeset.  Got a URL?
>>>>>>>
>>>>>> changeset:   1341:ff32c270102a
>>>>>> user:        martin
>>>>>> date:        Mon Jun 22 21:07:20 2009 -0700
>>>>>> summary:     6853806: Prefer (cd $dir && jar) to jar -C for performance reasons
>>>>>>
>>>>>> http://hg.openjdk.java.net/jdk7/jdk7/jdk/rev/ff32c270102a
>>>>> Ta; no idea why i couldn't find it.
>>>>>
>>>>>> Oh the benefits of a useful summary...
>>>>>
>>>>> He.  That's not a summary, it's (almost) the entire comment!
>>>>
>>>> Ha, yeah.  The bugID per changeset thing does come in useful though
>>>> when you need to do this kind of lookup as you can just search the
>>>> output of hg log for the bug ID.
>>>
>>> I don't get it.  How does a summary line help searching?  You could just as
>>> easily, and more reliably, search the full log for the bug ID.
>>>
>>> Andrew.
>>>
>>
>
>
>
> --
> Andrew :-)
>
> Free Java Software Engineer
> Red Hat, Inc. (http://www.redhat.com)
>
> Support Free Java!
> Contribute to GNU Classpath and the OpenJDK
> http://www.gnu.org/software/classpath
> http://openjdk.java.net
>
> PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
> Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
>



More information about the distro-pkg-dev mailing list