Show More
@@ -109,6 +109,13 b' command = registrar.command(cmdtable)' | |||
|
109 | 109 | # leave the attribute unspecified. |
|
110 | 110 | testedwith = 'ships-with-hg-core' |
|
111 | 111 | |
|
112 | configtable = {} | |
|
113 | configitem = registrar.configitem(configtable) | |
|
114 | ||
|
115 | configitem('mq', 'git', | |
|
116 | default='auto', | |
|
117 | ) | |
|
118 | ||
|
112 | 119 | # force load strip extension formerly included in mq and import some utility |
|
113 | 120 | try: |
|
114 | 121 | stripext = extensions.find('strip') |
@@ -444,17 +451,14 b' class queue(object):' | |||
|
444 | 451 | self.activeguards = None |
|
445 | 452 | self.guardsdirty = False |
|
446 | 453 | # Handle mq.git as a bool with extended values |
|
447 | try: | |
|
448 |
|
|
|
449 |
|
|
|
450 | raise error.ConfigError | |
|
451 |
|
|
|
452 | self.gitmode = 'yes' | |
|
454 | gitmode = ui.config('mq', 'git').lower() | |
|
455 | boolmode = util.parsebool(gitmode) | |
|
456 | if boolmode is not None: | |
|
457 | if boolmode: | |
|
458 | gitmode = 'yes' | |
|
453 | 459 | else: |
|
454 |
|
|
|
455 | except error.ConfigError: | |
|
456 | # let's have check-config ignore the type mismatch | |
|
457 | self.gitmode = ui.config(r'mq', 'git', 'auto').lower() | |
|
460 | gitmode = 'no' | |
|
461 | self.gitmode = gitmode | |
|
458 | 462 | # deprecated config: mq.plain |
|
459 | 463 | self.plainmode = ui.configbool('mq', 'plain', False) |
|
460 | 464 | self.checkapplied = True |
General Comments 0
You need to be logged in to leave comments.
Login now