hgext/mq.py
branchstable
changeset 14502 deb82fdda94e
parent 14170 31ec4d7eb63f
child 14509 4f695345979c
equal deleted inserted replaced
14501:78fe305f5965 14502:deb82fdda94e
  2535 
  2535 
  2536 def strip(ui, repo, *revs, **opts):
  2536 def strip(ui, repo, *revs, **opts):
  2537     """strip changesets and all their descendants from the repository
  2537     """strip changesets and all their descendants from the repository
  2538 
  2538 
  2539     The strip command removes the specified changesets and all their
  2539     The strip command removes the specified changesets and all their
  2540     descendants. If the working directory has uncommitted changes,
  2540     descendants. If the working directory has uncommitted changes, the
  2541     the operation is aborted unless the --force flag is supplied.
  2541     operation is aborted unless the --force flag is supplied, in which
       
  2542     case changes will be discarded.
  2542 
  2543 
  2543     If a parent of the working directory is stripped, then the working
  2544     If a parent of the working directory is stripped, then the working
  2544     directory will automatically be updated to the most recent
  2545     directory will automatically be updated to the most recent
  2545     available ancestor of the stripped parent after the operation
  2546     available ancestor of the stripped parent after the operation
  2546     completes.
  2547     completes.
  3232          [('m', 'missing', None, _('print patches not in series')),
  3233          [('m', 'missing', None, _('print patches not in series')),
  3233          ] + seriesopts,
  3234          ] + seriesopts,
  3234           _('hg qseries [-ms]')),
  3235           _('hg qseries [-ms]')),
  3235      "strip":
  3236      "strip":
  3236          (strip,
  3237          (strip,
  3237          [('f', 'force', None, _('force removal of changesets even if the '
  3238          [('f', 'force', None, _('force removal of changesets, discard '
  3238                                  'working directory has uncommitted changes')),
  3239                                  'uncommitted changes (no backup)')),
  3239           ('b', 'backup', None, _('bundle only changesets with local revision'
  3240           ('b', 'backup', None, _('bundle only changesets with local revision'
  3240                                   ' number greater than REV which are not'
  3241                                   ' number greater than REV which are not'
  3241                                   ' descendants of REV (DEPRECATED)')),
  3242                                   ' descendants of REV (DEPRECATED)')),
  3242           ('n', 'no-backup', None, _('no backups')),
  3243           ('n', 'no-backup', None, _('no backups')),
  3243           ('', 'nobackup', None, _('no backups (DEPRECATED)')),
  3244           ('', 'nobackup', None, _('no backups (DEPRECATED)')),