remotefilelog: use the right expandpath in to expand `~`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 14 Apr 2021 12:57:55 +0200
changeset 46945 c1749dd31cdf
parent 46944 0428e555acb7
child 46946 b6b696442a4d
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
hgext/remotefilelog/__init__.py
--- 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()