overriding command defaults

Georg Brandl g.brandl at gmx.net
Fri Dec 5 14:03:42 CST 2008


TK Soh schrieb:
> Recently I tried to debug a problem in hgtk's annotate tool where the
> annotate output window came up empty. It turned out that I had the
> command default defined in ~/.hgrc for annotate command which give
> extra output, it messed up the logic in the annotate tool which calls
> 'hg annotate' via command line and parses it's output. IIRC, I had a
> similar problem with Qct caused the command defaults.
> 
> Is there anyway to suppress the command defaults?

A similar use case for an easy option to suppress defaults is with the
new rebase extension: hg pull --update --rebase aborts.

Now, I don't know if it's good practice, but I have "-u" in my defaults
for hg pull, so if I want to pull --rebase this will be awkward.  Maybe
--rebase can just override --update, or with a new global option (strawman: -D)
I could do "hg -D pull --rebase" which would be fine with me.

cheers,
Georg

-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.



More information about the Mercurial-devel mailing list