hgrc: verbose setting questions

TK Soh teekaysoh at yahoo.com
Sun Sep 3 01:36:11 UTC 2006


--- "John D. Mitchell" <jdmitchell at gmail.com> wrote:
> On 9/2/06, TK Soh <teekaysoh at gmail.com> wrote:
> > On 9/3/06, Benoit Boissinot <bboissin at gmail.com> wrote:
> > > On 9/3/06, TK Soh <teekaysoh at yahoo.com> wrote:
> > > > +
> > > > +  Command defaults don't apply to aliases, so it will only work for 'log',
> > > > +  but not 'history', which is an alias to the 'log' command.
> > > > +
> > > 'hg history' works with verbose for me. Or do you mean you cannot do:

That's what I meant (sorry I missed this part of your message earlier).

> > > [defaults]
> > > history = -v
> >
> > How did you make it work? I couldn't. Do I missing something?
> 
> [defaults]
> log = -v
> 
> then hg log and hg hi(story) give the same, verbose output.

Perhaps this one will be clearer:

# HG changeset patch
# User TK Soh <teekaysoh at yahoo.com>
# Date 1157199893 -28800
# Node ID 1f893d8cadbd49f8028ee6d7b4210a2b5cc2933f
# Parent  892eb1b4f9730f39386fb9eea7e4097123d2b801
add document on command defaults

diff -r 892eb1b4f973 -r 1f893d8cadbd doc/hgrc.5.txt
--- a/doc/hgrc.5.txt	Thu Aug 31 12:51:02 2006 -0500
+++ b/doc/hgrc.5.txt	Sat Sep 02 20:24:53 2006 +0800
@@ -134,6 +134,21 @@ decode/encode::
     # convert files to windows line ending conventions when writing
     # them to the working dir
     **.txt = tempfile: unix2dos -n INFILE OUTFILE
+
+defaults::
+  Use the [defaults] section to define command defaults, i.e. the 
+  default options/arguments to pass to the specified commands.
+  
+  The following example makes 'hg log' run in verbose mode, and
+  'hg status' show only the the modified files, by default.
+  
+    [defaults]
+    log = -v
+    status = -m
+  
+  The actual commands, instead of their aliases, must be used when 
+  defining command defaults. The command defaults will also be
+  applied to the aliases of the commands defined.
 
 email::
   Settings for extensions that send email messages.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Mercurial mailing list