This extension is not distributed with Mercurial.
Author: Andrei Vermel
Download site: Download direct from this page - qup.py
Allows to move MQ patches to top of unapplied part of series without using a text editor. Patches can be specified by unambiguous start substrings or indices.
An example of usage:
>hg qseries one.patch two.patch three.patch four.patch five.patch >hg qapplied one.patch >hg qup five three >hg qseries one.patch five.patch three.patch two.patch four.patch
Configure your .hgrc to enable the extension by adding following lines:
[extensions] qup = path/to/qup.py