Commits

Pierre-Yves David committed 6cbb52a

prune: rename --new to --succ

This is closer to want the documentation says.

  • Participants
  • Parent commits eff18fc
  • Branches stable

Comments (0)

Files changed (1)

File hgext/evolve.py

         return 1
 
 @command('^prune|obsolete|kill',
-    [('n', 'new', [], _("successor changeset")),
+    [('n', 'new', [], _("successor changeset (DEPRECATED)")),
+     ('s', 'succ', [], _("successor changeset")),
      ('r', 'rev', [], _("revisions to prune"))],
     _('[OPTION] [-r] REV...'))
 def cmdprune(ui, repo, *revs, **opts):
     """
     revs = list(revs)
     revs.extend(opts['rev'])
+    succs = opts['new'] + opts['succ']
     wlock = repo.wlock()
     try:
         lock = repo.lock()
         try:
-            new = set(scmutil.revrange(repo, opts['new']))
+            new = set(scmutil.revrange(repo, succs))
             targetnodes = set(scmutil.revrange(repo, revs))
             if not targetnodes:
                 raise util.Abort('nothing to prune')