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
--- 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()