##// END OF EJS Templates
alias: pass local ui to shell alias...
Matt Mackall -
r14888:946f4381 default
parent child Browse files
Show More
@@ -481,7 +481,7 b' def _getlocal(ui, rpath):'
481
481
482 return path, lui
482 return path, lui
483
483
484 def _checkshellalias(ui, args):
484 def _checkshellalias(lui, ui, args):
485 norepo = commands.norepo
485 norepo = commands.norepo
486 options = {}
486 options = {}
487
487
@@ -493,8 +493,6 b' def _checkshellalias(ui, args):'
493 if not args:
493 if not args:
494 return
494 return
495
495
496 path, lui = _getlocal(ui, [options['repository']])
497
498 cmdtable = commands.table.copy()
496 cmdtable = commands.table.copy()
499 addaliases(lui, cmdtable)
497 addaliases(lui, cmdtable)
500
498
@@ -533,7 +531,7 b' def _dispatch(req):'
533
531
534 # Now that we're operating in the right directory/repository with
532 # Now that we're operating in the right directory/repository with
535 # the right config settings, check for shell aliases
533 # the right config settings, check for shell aliases
536 shellaliasfn = _checkshellalias(ui, args)
534 shellaliasfn = _checkshellalias(lui, ui, args)
537 if shellaliasfn:
535 if shellaliasfn:
538 return shellaliasfn()
536 return shellaliasfn()
539
537
General Comments 0
You need to be logged in to leave comments. Login now