Commits

Anonymous committed 49c2c29

Allow collapsing a single revision.

This allows scripts that collapse a range of revisions and change the commit
message to keep working if there's only a single revision.

  • Participants
  • Parent commits 4e33516

Comments (0)

Files changed (1)

hgext/collapse.py

     if not revs:
         raise util.Abort(_('revision %s is not an ancestor of revision %s\n') %
                             (first, last))
-    elif len(revs) == 1:
-        raise util.Abort(_('only one revision specified'))
 
     ui.debug(_('Collapsing revisions %s\n') % revs)