Commits

Pierre-Yves David  committed b1bdcb4

hg prune: prevent empty call

  • Participants
  • Parent commits 897f6da

Comments (0)

Files changed (1)

File hgext/evolve.py

         try:
             new = set(noderange(repo, opts['new']))
             targetnodes = set(noderange(repo, revs))
+            if not targetnodes:
+                raise util.Abort('nothing to prune')
             if new:
                 sucs = tuple(repo[n] for n in new)
             else: