mercurial/dispatch.py
changeset 9610 d78fe60f6bda
parent 9569 ceb0f59e1327
child 9660 e0eae93e6c67
equal deleted inserted replaced
9609:aa404f3f661b 9610:d78fe60f6bda
   246                                      ui.config("ui", "strict"))
   246                                      ui.config("ui", "strict"))
   247         cmd = aliases[0]
   247         cmd = aliases[0]
   248         args = aliasargs(i[0]) + args
   248         args = aliasargs(i[0]) + args
   249         defaults = ui.config("defaults", cmd)
   249         defaults = ui.config("defaults", cmd)
   250         if defaults:
   250         if defaults:
   251             args = shlex.split(defaults) + args
   251             args = map(util.expandpath, shlex.split(defaults)) + args
   252         c = list(i[1])
   252         c = list(i[1])
   253     else:
   253     else:
   254         cmd = None
   254         cmd = None
   255         c = []
   255         c = []
   256 
   256 
   475             format = 'text'
   475             format = 'text'
   476 
   476 
   477         output = ui.config('profiling', 'output')
   477         output = ui.config('profiling', 'output')
   478 
   478 
   479         if output:
   479         if output:
   480             path = os.path.expanduser(output)
   480             path = ui.expandpath(output)
   481             path = ui.expandpath(path)
       
   482             ostream = open(path, 'wb')
   481             ostream = open(path, 'wb')
   483         else:
   482         else:
   484             ostream = sys.stderr
   483             ostream = sys.stderr
   485 
   484 
   486         try:
   485         try: