Bug 1197527 - Don't unnecessarily attempt to create extensions directory in MercurialUpdater; r=gps

This commit is contained in:
Birunthan Mohanathas 2015-08-22 13:50:05 -07:00
parent 1235b5142f
commit de5fd4f269

View File

@ -23,16 +23,9 @@ class MercurialUpdater(object):
def __init__(self, state_dir):
self.state_dir = os.path.normpath(state_dir)
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):
try:
os.makedirs(self.ext_dir)
except OSError as e:
if e.errno != errno.EEXIST:
raise
try:
hg = which.which('hg')
except which.WhichError as e: