[PATCH 2 of 2] pathutil: hint if a path is root relative instead of cwd relative (issue4663)
pierre-yves.david at ens-lyon.org
Mon May 11 21:56:27 CDT 2015
On 05/11/2015 07:51 PM, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1431393973 14400
> # Mon May 11 21:26:13 2015 -0400
> # Node ID 99f04b658814675825ad17d58524d1f3ecf8f6b9
> # Parent 835b2b100c94079bf2a47adbe3381fa351cbdc9b
> pathutil: hint if a path is root relative instead of cwd relative (issue4663)
> Given that this path is going to abort, it seems OK to spend the time to do an
> alternate lookup to better inform the user. The path returned by util.pathto()
> ends with '/' at least in some cases, so os.path.relpath() is used instead,
> which requires python 2.6.
This series looks good to me (and prety awesome).
However, the patch dropping 2.4 is not in the main repository yet ☹ so
I'll have to wait to push it.
More information about the Mercurial-devel