Do you have your patches against some project, which won't be accepted soon/at all? Are you afraid of their aging and later difficult merging with the new projects stable release? This script does it for you automagically. Written in ksh on top of hg.