changeset 31330:a3a2382b2e1b

commands: directly use repo.vfs.join The 'repo.join' method is about to be deprecated.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Wed, 08 Mar 2017 16:53:17 -0800
parents 1b0db28dadf1
children 4282feb79432
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Wed Mar 08 16:53:09 2017 -0800
+++ b/mercurial/commands.py	Wed Mar 08 16:53:17 2017 -0800
@@ -1772,7 +1772,7 @@
         if opts.get('local'):
             if not repo:
                 raise error.Abort(_("can't use --local outside a repository"))
-            paths = [repo.join('hgrc')]
+            paths = [repo.vfs.join('hgrc')]
         elif opts.get('global'):
             paths = scmutil.systemrcpath()
         else: