From 5af71702d332fd4e3a4d4adcd8e6805ac5fa1c71 Mon Sep 17 00:00:00 2001 From: Ricky Stewart Date: Thu, 14 May 2020 18:14:11 +0000 Subject: [PATCH] Bug 1637709 - Configure purge extension when calling `hg purge` r=nalexander Differential Revision: https://phabricator.services.mozilla.com/D75328 --- python/mozbuild/mozbuild/mach_commands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py index c6168c371c80..5d16a3a13078 100644 --- a/python/mozbuild/mozbuild/mach_commands.py +++ b/python/mozbuild/mozbuild/mach_commands.py @@ -231,8 +231,9 @@ class Clobber(MachCommandBase): if 'python' in what: if conditions.is_hg(self): - cmd = ['hg', 'purge', '--all', '-I', 'glob:**.py[cdo]', - '-I', 'path:python/', '-I', 'path:third_party/python/'] + cmd = ['hg', '--config', 'extensions.purge=', 'purge', '--all', + '-I', 'glob:**.py[cdo]', '-I', 'path:python/', '-I', + 'path:third_party/python/'] elif conditions.is_git(self): cmd = ['git', 'clean', '-f', '-x', '*.py[cdo]', 'python/', 'third_party/python/']