expected behavior of "%unset" in configuration file
Matt Mackall
mpm at selenic.com
Thu Apr 18 13:22:17 CDT 2013
On Thu, 2013-04-18 at 19:31 +0900, FUJIWARA Katsunori wrote:
> Hi, devels.
>
> "hg help config" says:
>
> A line with ``%unset name`` will remove ``name`` from the current
> section, if it has been set previously.
>
> In this description, it is not explicitly described whether "%unset"
> can remove the value which "has benn set" in another configuration
> file read "previously" or not.
"Previously" here should include other (more global) config files loaded
earlier.
> And current "ui"/"config" implementation doesn't remove such value.
> "%unset" can remove only values set in same configuration file.
>
> Is current behavior expected one ?
>
> If current behavior is expected one, should it be described
> explicitly, to prevent users from misunderstanding ? at least, I
> misunderstood and confirmed with source code of Mercurial :-)
>
> Or can native speakers read such meaning from above description ? If
> so, I'll add translation note to translated version of "hg help
> config" instead of adding explanation to original help text.
>
> ----------------------------------------------------------------------
> [FUJIWARA Katsunori] foozy at lares.dti.ne.jp
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list