diff --git a/tools/mercurial/hgsetup/update.py b/tools/mercurial/hgsetup/update.py index a0f9115423d1..d507ddaad10c 100644 --- a/tools/mercurial/hgsetup/update.py +++ b/tools/mercurial/hgsetup/update.py @@ -26,7 +26,7 @@ class MercurialUpdater(object): self.ext_dir = os.path.join(self.state_dir, 'mercurial', 'extensions') self.vcs_tools_dir = os.path.join(self.state_dir, 'version-control-tools') - def update_all(self, config_paths): + def update_all(self): try: os.makedirs(self.ext_dir) except OSError as e: diff --git a/tools/mercurial/mach_commands.py b/tools/mercurial/mach_commands.py index abdab9b6de49..e9efb6eba3fd 100644 --- a/tools/mercurial/mach_commands.py +++ b/tools/mercurial/mach_commands.py @@ -61,7 +61,7 @@ class VersionControlCommands(object): if update_only: from hgsetup.update import MercurialUpdater updater = MercurialUpdater(self._context.state_dir) - result = updater.update_all(map(os.path.expanduser, config_paths)) + result = updater.update_all() else: from hgsetup.wizard import MercurialSetupWizard wizard = MercurialSetupWizard(self._context.state_dir)