[Updated] D11067: windows: use abspath in url

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Fri Jul 16 09:22:00 UTC 2021


Closed by commit rHG8e5192e41e0b: windows: use abspath in url (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11067?vs=29125&id=29313

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11067/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11067

AFFECTED FILES
  mercurial/url.py

CHANGE DETAILS

diff --git a/mercurial/url.py b/mercurial/url.py
--- a/mercurial/url.py
+++ b/mercurial/url.py
@@ -10,7 +10,6 @@
 from __future__ import absolute_import
 
 import base64
-import os
 import socket
 import sys
 
@@ -685,7 +684,7 @@
         u.scheme = u.scheme.lower()
         url_, authinfo = u.authinfo()
     else:
-        path = util.normpath(os.path.abspath(url_))
+        path = util.normpath(util.abspath(url_))
         url_ = b'file://' + pycompat.bytesurl(
             urlreq.pathname2url(pycompat.fsdecode(path))
         )



To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210716/dae7efd2/attachment-0002.html>


More information about the Mercurial-patches mailing list