forked from mirrors/gecko-dev
Bug 977384 - mach mercurial-setup: Remaining cleanup; r=gps
This commit is contained in:
parent
947aafcf25
commit
1386611e1d
2 changed files with 9 additions and 14 deletions
|
|
@ -133,7 +133,6 @@ class MercurialConfig(object):
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def have_qnew_currentuser_default(self):
|
def have_qnew_currentuser_default(self):
|
||||||
if 'defaults' not in self._c:
|
if 'defaults' not in self._c:
|
||||||
return False
|
return False
|
||||||
|
|
@ -157,5 +156,3 @@ class MercurialConfig(object):
|
||||||
d['qnew'] = '-U'
|
d['qnew'] = '-U'
|
||||||
else:
|
else:
|
||||||
d['qnew'] = '-U ' + d['qnew']
|
d['qnew'] = '-U ' + d['qnew']
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -156,9 +156,7 @@ class MercurialSetupWizard(object):
|
||||||
|
|
||||||
self.prompt_external_extension(c, 'bzexport', BZEXPORT_INFO)
|
self.prompt_external_extension(c, 'bzexport', BZEXPORT_INFO)
|
||||||
|
|
||||||
active = c.extensions
|
if 'mq' in c.extensions:
|
||||||
|
|
||||||
if 'mq' in active:
|
|
||||||
self.prompt_external_extension(c, 'mqext', MQEXT_INFO,
|
self.prompt_external_extension(c, 'mqext', MQEXT_INFO,
|
||||||
os.path.join(self.ext_dir, 'mqext'))
|
os.path.join(self.ext_dir, 'mqext'))
|
||||||
|
|
||||||
|
|
@ -305,4 +303,4 @@ class MercurialSetupWizard(object):
|
||||||
if choice in ('n', 'no'):
|
if choice in ('n', 'no'):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
print('Must reply with one of {yes, no, y, no}.')
|
print('Must reply with one of {yes, no, y, n}.')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue