changeset 46945:c1749dd31cdf

remotefilelog: use the right expandpath in to expand `~` Given the context where path is most likely a file system path, I suspect that the initial author confused ui.expandpath and util.expandpath (a proxy for os.path.expanduser and co) Differential Revision: https://phab.mercurial-scm.org/D10411
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 14 Apr 2021 12:57:55 +0200
parents 0428e555acb7
children b6b696442a4d
files hgext/remotefilelog/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/remotefilelog/__init__.py	Fri Apr 16 10:46:56 2021 +0200
+++ b/hgext/remotefilelog/__init__.py	Wed Apr 14 12:57:55 2021 +0200
@@ -888,7 +888,7 @@
         progress.update(count)
         count += 1
         try:
-            path = ui.expandpath(os.path.normpath(path))
+            path = util.expandpath(os.path.normpath(path))
         except TypeError as e:
             ui.warn(_(b"warning: malformed path: %r:%s\n") % (path, e))
             traceback.print_exc()