Changeset 6ab1df0a7b5e…
Parent 8c2e626f703a…
by
Changes to 2 files · Browse files at 6ab1df0a7b5e Showing diff from parent 8c2e626f703a Diff from another changeset...
@@ -281,7 +281,7 @@ return
q = Queue.Queue()
- args = [self.repo.root, q, 'grep', '--config', 'defaults.grep=']
+ args = [self.repo.root, q, 'grep']
if follow.get_active(): args.append('--follow')
if ignorecase.get_active(): args.append('--ignore-case')
if linenum.get_active(): args.append('--line-number')
@@ -562,8 +562,8 @@ '''
(frame, model, path) = objs
q = Queue.Queue()
- args = [self.repo.root, q, '--config', 'defaults.annotate=',
- 'annotate', '--follow', '--number', '--rev', str(rev), path]
+ args = [self.repo.root, q, 'annotate', '--follow', '--number',
+ '--rev', str(rev), path]
thread = threading.Thread(target=hgcmd_toq, args=args)
thread.start()
frame._mythread = thread
|
@@ -243,11 +243,17 @@ return values
_loaded = {}
-def thgdispatch(ui, path=None, args=[]):
+def thgdispatch(ui, path=None, args=[], nodefaults=True):
'''
Replicate functionality of mercurial dispatch but force the use
of the passed in ui for all purposes
'''
+
+ # clear all user-defined command defaults
+ if nodefaults:
+ for k, v in ui.configitems('defaults'):
+ ui.setconfig('defaults', k, '')
+
# read --config before doing anything else
# (e.g. to change trust settings for reading .hg/hgrc)
config = _earlygetopt(['--config'], args)
|
Loading...