mercurial/commands.py
changeset 1894 4c53aaf2d153
parent 1893 6569651a4f1e
child 1920 b7cc0f323a4c
equal deleted inserted replaced
1893:6569651a4f1e 1894:4c53aaf2d153
  2647     "verify": (verify, [], _('hg verify')),
  2647     "verify": (verify, [], _('hg verify')),
  2648     "version": (show_version, [], _('hg version')),
  2648     "version": (show_version, [], _('hg version')),
  2649 }
  2649 }
  2650 
  2650 
  2651 globalopts = [
  2651 globalopts = [
  2652     ('R', 'repository', '', _('repository root directory')),
  2652     ('R', 'repository', '',
       
  2653      _('repository root directory or symbolic path name')),
  2653     ('', 'cwd', '', _('change working directory')),
  2654     ('', 'cwd', '', _('change working directory')),
  2654     ('y', 'noninteractive', None,
  2655     ('y', 'noninteractive', None,
  2655      _('do not prompt, assume \'yes\' for any required answers')),
  2656      _('do not prompt, assume \'yes\' for any required answers')),
  2656     ('q', 'quiet', None, _('suppress output')),
  2657     ('q', 'quiet', None, _('suppress output')),
  2657     ('v', 'verbose', None, _('enable additional output')),
  2658     ('v', 'verbose', None, _('enable additional output')),
  2838                     os.chdir(options['cwd'])
  2839                     os.chdir(options['cwd'])
  2839                 except OSError, inst:
  2840                 except OSError, inst:
  2840                     raise util.Abort('%s: %s' %
  2841                     raise util.Abort('%s: %s' %
  2841                                      (options['cwd'], inst.strerror))
  2842                                      (options['cwd'], inst.strerror))
  2842 
  2843 
  2843             path = options["repository"] or ""
  2844             path = u.expandpath(options["repository"]) or ""
  2844             repo = path and hg.repository(u, path=path) or None
  2845             repo = path and hg.repository(u, path=path) or None
  2845 
  2846 
  2846             if options['help']:
  2847             if options['help']:
  2847                 help_(u, cmd, options['version'])
  2848                 help_(u, cmd, options['version'])
  2848                 sys.exit(0)
  2849                 sys.exit(0)