[PATCH] dirstate: use repository root as base for relative paths read from ui.ignore

Mads Kiilerich mads at kiilerich.com
Fri Apr 19 11:43:40 CDT 2013


On 04/18/2013 09:56 PM, diptongo at gmail.com wrote:
> # HG changeset patch
> # User Isaac Jurado <diptongo at gmail.com>
> # Date 1366314160 -7200
> #      Thu Apr 18 21:42:40 2013 +0200
> # Node ID 380de75c43f4a186a1b8255393cf52c3af43820a
> # Parent  7d31f2e42a8afb54c8fae87e8e3e29a63578aea4
> dirstate: use repository root as base for relative paths read from ui.ignore
>
> Convert relative paths from the ui.ignore* configurations to absolute by
> prepending the path to the repository root.  This breaks the old, and probably
> unused, behaviour where relative paths were interpreted from the working
> directory.

I agree that the current behaviour is useless, but think that would you 
describe would be surprising. I would expect a relative filename in a 
config file to be relative to the file it is specified in (or cwd if 
specified on the command line).

See also http://markmail.org/message/fcgvz5zij62triwk for a similar 
discussion and some unanswered questions you might want to pick up.

/Mads



More information about the Mercurial-devel mailing list