mercurial/commands.py
changeset 22429 7a7eed5176a4
parent 22423 edf07a804ac4
child 22431 eaeee6f95fc0
equal deleted inserted replaced
22428:427e80a18ef8 22429:7a7eed5176a4
    97 commitopts2 = [
    97 commitopts2 = [
    98     ('d', 'date', '',
    98     ('d', 'date', '',
    99      _('record the specified date as commit date'), _('DATE')),
    99      _('record the specified date as commit date'), _('DATE')),
   100     ('u', 'user', '',
   100     ('u', 'user', '',
   101      _('record the specified user as committer'), _('USER')),
   101      _('record the specified user as committer'), _('USER')),
       
   102 ]
       
   103 
       
   104 # hidden for now
       
   105 formatteropts = [
       
   106     ('T', 'template', '',
       
   107      _('display with template (DEPRECATED)'), _('TEMPLATE')),
   102 ]
   108 ]
   103 
   109 
   104 templateopts = [
   110 templateopts = [
   105     ('', 'style', '',
   111     ('', 'style', '',
   106      _('display using template map file (DEPRECATED)'), _('STYLE')),
   112      _('display using template map file (DEPRECATED)'), _('STYLE')),
  3062                  opts=patch.diffopts(ui, opts))
  3068                  opts=patch.diffopts(ui, opts))
  3063 
  3069 
  3064 @command('files',
  3070 @command('files',
  3065     [('r', 'rev', '', _('search the repository as it is in REV'), _('REV')),
  3071     [('r', 'rev', '', _('search the repository as it is in REV'), _('REV')),
  3066      ('0', 'print0', None, _('end filenames with NUL, for use with xargs')),
  3072      ('0', 'print0', None, _('end filenames with NUL, for use with xargs')),
  3067     ] + walkopts,
  3073     ] + walkopts + formatteropts,
  3068     _('[OPTION]... [PATTERN]...'))
  3074     _('[OPTION]... [PATTERN]...'))
  3069 def files(ui, repo, *pats, **opts):
  3075 def files(ui, repo, *pats, **opts):
  3070     """list tracked files
  3076     """list tracked files
  3071 
  3077 
  3072     Print files under Mercurial control in the working directory or
  3078     Print files under Mercurial control in the working directory or
  4341 
  4347 
  4342     displayer.close()
  4348     displayer.close()
  4343 
  4349 
  4344 @command('manifest',
  4350 @command('manifest',
  4345     [('r', 'rev', '', _('revision to display'), _('REV')),
  4351     [('r', 'rev', '', _('revision to display'), _('REV')),
  4346      ('', 'all', False, _("list files from all revisions"))],
  4352      ('', 'all', False, _("list files from all revisions"))]
       
  4353          + formatteropts,
  4347     _('[-r REV]'))
  4354     _('[-r REV]'))
  4348 def manifest(ui, repo, node=None, rev=None, **opts):
  4355 def manifest(ui, repo, node=None, rev=None, **opts):
  4349     """output the current or given revision of the project manifest
  4356     """output the current or given revision of the project manifest
  4350 
  4357 
  4351     Print a list of version controlled files for the given revision.
  4358     Print a list of version controlled files for the given revision.
  5500     ('n', 'no-status', None, _('hide status prefix')),
  5507     ('n', 'no-status', None, _('hide status prefix')),
  5501     ('C', 'copies', None, _('show source of copied files')),
  5508     ('C', 'copies', None, _('show source of copied files')),
  5502     ('0', 'print0', None, _('end filenames with NUL, for use with xargs')),
  5509     ('0', 'print0', None, _('end filenames with NUL, for use with xargs')),
  5503     ('', 'rev', [], _('show difference from revision'), _('REV')),
  5510     ('', 'rev', [], _('show difference from revision'), _('REV')),
  5504     ('', 'change', '', _('list the changed files of a revision'), _('REV')),
  5511     ('', 'change', '', _('list the changed files of a revision'), _('REV')),
  5505     ] + walkopts + subrepoopts,
  5512     ] + walkopts + subrepoopts + formatteropts,
  5506     _('[OPTION]... [FILE]...'),
  5513     _('[OPTION]... [FILE]...'),
  5507     inferrepo=True)
  5514     inferrepo=True)
  5508 def status(ui, repo, *pats, **opts):
  5515 def status(ui, repo, *pats, **opts):
  5509     """show changed files in the working directory
  5516     """show changed files in the working directory
  5510 
  5517 
  5955         repo.tag(names, r, message, opts.get('local'), opts.get('user'), date,
  5962         repo.tag(names, r, message, opts.get('local'), opts.get('user'), date,
  5956                  editor=editor)
  5963                  editor=editor)
  5957     finally:
  5964     finally:
  5958         release(lock, wlock)
  5965         release(lock, wlock)
  5959 
  5966 
  5960 @command('tags', [], '')
  5967 @command('tags', formatteropts, '')
  5961 def tags(ui, repo, **opts):
  5968 def tags(ui, repo, **opts):
  5962     """list repository tags
  5969     """list repository tags
  5963 
  5970 
  5964     This lists both regular and local tags. When the -v/--verbose
  5971     This lists both regular and local tags. When the -v/--verbose
  5965     switch is used, a third column "local" is printed for local tags.
  5972     switch is used, a third column "local" is printed for local tags.