mercurial/commands.py
changeset 843 859e7ea530bd
parent 842 8fb488773063
child 844 5a717cfa7406
equal deleted inserted replaced
842:8fb488773063 843:859e7ea530bd
   312     else:
   312     else:
   313         if ui.verbose:
   313         if ui.verbose:
   314             show_version(ui)
   314             show_version(ui)
   315             ui.write('\n')
   315             ui.write('\n')
   316         if ui.verbose:
   316         if ui.verbose:
       
   317             ui.write("global options:\n\n")
       
   318             for s, l, d, c in globalopts:
       
   319                 opt = ' '
       
   320                 if s:
       
   321                     opt = opt + '-' + s + ' '
       
   322                 if l:
       
   323                     opt = opt + '--' + l + ' '
       
   324                 if d:
       
   325                     opt = opt + '(' + str(d) + ')'
       
   326                 ui.write(opt, "\n")
       
   327                 if c:
       
   328                     ui.write('    %s\n' % c)
       
   329             ui.write("\n")
       
   330 
   317             ui.write('hg commands:\n\n')
   331             ui.write('hg commands:\n\n')
   318         else:
   332         else:
   319             ui.write('basic hg commands (use "hg help -v" for more):\n\n')
   333             ui.write('basic hg commands (use "hg help -v" for more):\n\n')
   320 
   334 
   321         h = {}
   335         h = {}