Folks,

Any news on providing the preferred format of 'hg outgoing' for webRTI 
as the default style for ON gates?

Also, some have suggested that the leading tab before the description be 
removed and that an extra blank line be inserted before the description 
keyword, for example:

estale(5.11-64)$ hg rti
comparing with /home/sm26363/tmp/hg/master
searching for changes
changeset:   2:29b7731618ba
tag:         tip
user:        Stacey Marshall <Stacey.Marshall at Sun.COM>
date:        Wed Sep 24 10:03:19 2008 +0100

description:
test

modified:
   a.txt


-------- Original Message --------
Subject:        Mercurial tip of the day: Creating an alias to provide WebRTI 
acceptable output
Date:   Wed, 24 Sep 2008 10:28:08 +0100
From:   Stacey Jonathan Marshall <stacey.marsh...@sun.com>
Organization:   Solaris RPE
To:     RPE-tech <rpe-tech at sun.com>
CC:     John Beck <jbeck at eng.sun.com>



WebRTI does not display long lines well and 'hg outgoing' by default may 
create long lines as by default it lists affected files on a single 
line.  To that end John Beck (jbeck) created an alternative style 
template that lists individual files on a separate line after the 
description.

To use this style one may either specify its use on the command line, 
define it as the default style, or create a Mercurial alias.

To create an alias firstly the alias extension should be enabled by 
simply adding an "alias=" line in the "[extensions]" section.  This 
causes Mercurial to look for the extension in the default locations.

Following that a new "[alias]" section may be created where alias are 
listed.  For Example:

$ *head -6 ~/.hgrc
*[extensions]
alias=

[alias]
rti = outgoing -v --style /home/jbeck/.hgstyle



To use the alias you then simply enter *hg rti* on the command line, for 
example:

$ *hg rti*
comparing with /home/sm26363/tmp/hg/master
searching for changes
no changes found
estale(5.11-64)$ hg commit
estale(5.11-64)$ hg rti
comparing with /home/sm26363/tmp/hg/master
searching for changes
changeset:   2:29b7731618ba
tag:         tip
user:        Stacey Marshall <Stacey.Marshall at Sun.COM>
date:        Wed Sep 24 10:03:19 2008 +0100
description:
        test

modified:
   a.txt

Below is the output from a standard *hg outgoing* command for comparison.

$ hg -v outgoing 
comparing with /home/sm26363/tmp/hg/master
searching for changes
changeset:   2:29b7731618ba
tag:         tip
user:        Stacey Marshall <Stacey.Marshall at Sun.COM>
date:        Wed Sep 24 10:03:19 2008 +0100
files:       a.txt
description:
test


This has been a public service announcement on the behalf of Revenue 
Product Engineering.



Reply via email to